diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-05-20 03:09:59 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2005-05-20 03:09:59 +0000 |
commit | 24ac553ca27136944cd45ab11364b37b52638927 (patch) | |
tree | 2edd544fdcf59e54048ddb88e6af987fc23635ee /net-p2p | |
parent | c61b25f60a1e5dec9fb3046758d8e2fcd42c752f (diff) | |
download | ports-24ac553ca27136944cd45ab11364b37b52638927.tar.gz ports-24ac553ca27136944cd45ab11364b37b52638927.zip |
Notes
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/dcd/Makefile | 64 | ||||
-rw-r--r-- | net-p2p/dcd/distinfo | 2 | ||||
-rw-r--r-- | net-p2p/dcd/files/pkg-deinstall.in | 9 | ||||
-rw-r--r-- | net-p2p/dcd/files/pkg-install.in | 7 | ||||
-rw-r--r-- | net-p2p/dcd/pkg-descr | 16 | ||||
-rw-r--r-- | net-p2p/dcd/pkg-plist | 15 |
6 files changed, 113 insertions, 0 deletions
diff --git a/net-p2p/dcd/Makefile b/net-p2p/dcd/Makefile new file mode 100644 index 000000000000..90b507259478 --- /dev/null +++ b/net-p2p/dcd/Makefile @@ -0,0 +1,64 @@ +# New ports collection makefile for: dcd +# Date created: 14 May 2005 +# Whom: Aleksandr S. Goncharov <mraleks@bk.ru> +# +# $FreeBSD$ +# + +PORTNAME= dcd +PORTVERSION= 0.4.8 +CATEGORIES= net +MASTER_SITES= http://www.dc.ds.pg.gda.pl/download/sources/stable/ + +MAINTAINER= mraleks@bk.ru +COMMENT= Direct Connect Hub clone for Unix + +USE_BZIP2= yes +USE_LIBTOOL_VER=15 +USE_REINPLACE= yes + +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.users dcd.welcome nicks.allow + +SUB_FILES= pkg-install pkg-deinstall +SUB_LIST= CONF_FILES="${CONF_FILES}" CONF_DIR="${PREFIX}/etc/dcd" + +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.mk> diff --git a/net-p2p/dcd/distinfo b/net-p2p/dcd/distinfo new file mode 100644 index 000000000000..7335099f9a20 --- /dev/null +++ b/net-p2p/dcd/distinfo @@ -0,0 +1,2 @@ +MD5 (dcd-0.4.8.tar.bz2) = 6219d776ce0ced149f74f28463b098f6 +SIZE (dcd-0.4.8.tar.bz2) = 340008 diff --git a/net-p2p/dcd/files/pkg-deinstall.in b/net-p2p/dcd/files/pkg-deinstall.in new file mode 100644 index 000000000000..19c51b8a3ad8 --- /dev/null +++ b/net-p2p/dcd/files/pkg-deinstall.in @@ -0,0 +1,9 @@ +#!/bin/sh + +[ "$2" != "DEINSTALL" ] && exit 0 + +for f in %%CONF_FILES%%; do + if cmp -s "%%CONF_DIR%%/$f" "%%CONF_DIR%%/$f.default"; then + rm -f "%%CONF_DIR%%/$f" + fi +done diff --git a/net-p2p/dcd/files/pkg-install.in b/net-p2p/dcd/files/pkg-install.in new file mode 100644 index 000000000000..585a18d73eba --- /dev/null +++ b/net-p2p/dcd/files/pkg-install.in @@ -0,0 +1,7 @@ +#!/bin/sh + +[ "$2" != "POST-INSTALL" ] && exit 0 + +for f in %%CONF_FILES%%; do + [ -f "%%CONF_DIR%%/$f" ] || cp -p "%%CONF_DIR%%/$f.default" "%%CONF_DIR%%/$f" +done diff --git a/net-p2p/dcd/pkg-descr b/net-p2p/dcd/pkg-descr new file mode 100644 index 000000000000..631dfc9cc25b --- /dev/null +++ b/net-p2p/dcd/pkg-descr @@ -0,0 +1,16 @@ +DConnect Daemon is a Direct Connect Hub clone for Unix. It allows people to +share their resources, i.e.: programs, graphics, other files... + +Features: + + * fast, pure C implementation + * libwrap support (hosts.allow, hosts.deny) + * low per-user memory consumption + * uses threads (no forking) + * nick pattern matching + * simple administration through telnet console + +WWW: http://www.dc.ds.pg.gda.pl/ + +- Aleksandr S. Goncharov +mraleks@bk.ru diff --git a/net-p2p/dcd/pkg-plist b/net-p2p/dcd/pkg-plist new file mode 100644 index 000000000000..61887844fd37 --- /dev/null +++ b/net-p2p/dcd/pkg-plist @@ -0,0 +1,15 @@ +sbin/dcd +@exec install -d -m 751 -o daemon -g daemon %D/etc/dcd +etc/dcd/console.allow.default +etc/dcd/dcd.banned.default +etc/dcd/dcd.conf.default +etc/dcd/dcd.motd.default +etc/dcd/dcd.penalties.default +etc/dcd/dcd.users.default +etc/dcd/dcd.welcome.default +etc/dcd/nicks.allow.default +@exec install -d -m 751 -o daemon -g daemon /var/log/dcd +@unexec rmdir /var/log/dcd 2>/dev/null || true +@unexec rmdir %D/etc/dcd 2>/dev/null || true +@unexec rmdir %D/man/pl.ISO8859-2/man8 2>/dev/null || true +@unexec rmdir %D/man/pl.ISO8859-2 2>/dev/null || true |