freebsd-ports/net-p2p/dcd/Makefile

68 lines
1.8 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: dcd
# Date created: 14 May 2005
# Whom: Aleksandr S. Goncharov <mraleks@bk.ru>
#
# $FreeBSD$
#
PORTNAME= dcd
PORTVERSION= 1.1.0
Populate newly create net-p2p category with these ports: ftp/jigdo net/amule1 net/amule2 net/apollon net/azureus net/bnbt net/btpeer net/btqueue net/cdonkey net/ctorrent net/dcd net/dclib net/dctc net/dctc-gui net/dctc-gui-qt net/edonkey-gui-gtk net/edonkey-gui-gtk-urlslave net/fcptools net/fidelio net/freenet net/frost net/giftcurs net/giftoxic net/giftui net/gift net/gift-fasttrack net/gift-gnutella net/gift-openft net/gkrellm-gift net/gnewtellium net/gnome-btdownload net/gnunet net/gtkhx net/gtk-gnutella net/gtorrentviewer net/hagelslag net/hx net/i2p net/javadc net/kmldonkey net/ktorrent net/libbt net/liberator net/libfreenet net/libpdtp net/libtorrent net/limewire net/linux-agsatellite net/linux-edonkey-core net/linux-edonkey-server net/linux-jigdo net/linux-overnet-core net/minder net/mldonkey net/mldonkey-core net/mldonkey-core-devel net/mldonkey-devel net/mldonkey-gui net/mldonkey-gui-devel net/mldonkey-perlreactor net/mldonkey-sancho net/mldonkey-serverspy net/mldonkey-urlslave net/mutella net/mute-net net/mute-net-gui net/mute-net-text net/napshare net/nicotine net/opendchub net/peercast net/phex net/pyslsk net/py-bittornado net/py-bittornado-core net/py-bittorrent net/py-bittorrent-core net/py-bittorrent-core-devel net/py-bittorrent-devel net/py-fngrab net/py-kenosis net/py-kenosis-bittorrent net/py-py2play net/p5-pdonkey net/qtella net/qtorrent net/rtorrent net/squall net/torrentflux net/torrentsniff net/trackerbt net/transmission net/valknut net/verlihub net/verlihub-plugins net/xmule net/xnap misc/ed2k misc/edonkey-tool-hash misc/linux-edonkey-tool-recovermet Repocopies by: marcus
2006-01-30 22:36:28 +01:00
CATEGORIES= net-p2p
MASTER_SITES= http://www.dc.ds.pg.gda.pl/download/sources/stable/
MAINTAINER= az@freebsd.org
COMMENT= Direct Connect Hub clone for Unix
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_RC_SUBR= dcd.sh
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}"
MAN8= dcd.8 dcd.console.8
MANLANG= "" pl.ISO8859-2
CONF_FILES= console.allow dcd.banned dcd.conf dcd.motd dcd.penalties \
dcd.rules dcd.users dcd.welcome nicks.allow dcd.hublinks \
dcd.usercommands
SUB_FILES= pkg-install pkg-deinstall
SUB_LIST= CONF_FILES="${CONF_FILES}" CONF_DIR="${PREFIX}/etc/dcd"
.include <bsd.port.pre.mk>
post-patch:
.for f in dcd dcd.console
@${MV} ${WRKSRC}/doc/${f}.2 ${WRKSRC}/doc/${f}.8
@${MV} ${WRKSRC}/doc/pl/${f}.1 ${WRKSRC}/doc/pl/${f}.8
.endfor
.for d in doc doc/pl
. for f in dcd.8 dcd.console.8
@${REINPLACE_CMD} -e \
's|/usr/local|${PREFIX}|g; \
s|^\(\.TH .*\)"[12]"|\1"8"|; \
s|([12])|(8)|' ${WRKSRC}/${d}/${f}
. endfor
@${REINPLACE_CMD} -e 's|man[12]|man8|g; s|\.[12]|.8|g; s|[12]\*|8*|g' \
${WRKSRC}/${d}/Makefile.in
.endfor
@${REINPLACE_CMD} -e 's|$$(mandir)/man8|$$(mandir)/pl.ISO8859-2/man8|' \
${WRKSRC}/doc/pl/Makefile.in
.for f in ${CONF_FILES}
@${MV} ${WRKSRC}/conf/${f} ${WRKSRC}/conf/${f}.default
@${REINPLACE_CMD} -e 's|${f}|${f}.default|g' ${WRKSRC}/conf/Makefile.in
.endfor
@${MV} ${WRKSRC}/conf/dcd.conf.in ${WRKSRC}/conf/dcd.conf.default.in
@${REINPLACE_CMD} -e 's|\(dcd\.conf\)|\1.default|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-O2||g; s|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
post-install:
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>