aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-12-07 20:59:29 +0800
committervs <vs@FreeBSD.org>2005-12-07 20:59:29 +0800
commit63866c28b87d7ea20b8ca8fee2c6f912cb00664f (patch)
treedb113867cb551661a8b6bd7110e92f7e8bc1b559 /net
parentd244d46ed26917f1a3d1422dbd6e736dcc45415f (diff)
downloadfreebsd-ports-gnome-63866c28b87d7ea20b8ca8fee2c6f912cb00664f.tar.gz
freebsd-ports-gnome-63866c28b87d7ea20b8ca8fee2c6f912cb00664f.tar.zst
freebsd-ports-gnome-63866c28b87d7ea20b8ca8fee2c6f912cb00664f.zip
- Link dynamically against libevent
- Cleanup USE_RC_SUBR-handling
Diffstat (limited to 'net')
-rw-r--r--net/nylon/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/net/nylon/Makefile b/net/nylon/Makefile
index f9eae74e2ae4..a25935d21ba7 100644
--- a/net/nylon/Makefile
+++ b/net/nylon/Makefile
@@ -15,11 +15,11 @@ MASTER_SITES= http://monkey.org/~marius/nylon/
MAINTAINER= ports@FreeBSD.org
COMMENT= A Unix SOCKS 4 and 5 proxy server
-BUILD_DEPENDS= ${LOCALBASE}/lib/libevent.a:${PORTSDIR}/devel/libevent
+LIB_DEPENDS= event-1.1a.1:${PORTSDIR}/devel/libevent
-USE_RC_SUBR= yes
-RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
+USE_RC_SUBR= nylon.sh
+USE_REINPLACE= yes
GNU_CONFIGURE= yes
# Necessary for $PREFIX to work:
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@@ -27,14 +27,12 @@ CONFIGURE_ARGS= --with-libevent=${LOCALBASE}
MAN1= nylon.1
-PLIST_FILES= bin/nylon etc/nylon.conf.sample etc/rc.d/nylon.sh
+PLIST_FILES= bin/nylon etc/nylon.conf.sample
-post-extract:
- @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/nylon.sh.in > ${WRKSRC}/nylon.sh
+post-patch:
+ ${REINPLACE_CMD} -e 's/-levent/-levent-1.1a/' ${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${FILESDIR}/nylon.conf ${PREFIX}/etc/nylon.conf.sample
- ${INSTALL_SCRIPT} ${WRKSRC}/nylon.sh ${PREFIX}/etc/rc.d
.include <bsd.port.mk>