diff options
author | mm <mm@FreeBSD.org> | 2010-05-28 19:59:50 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2010-05-28 19:59:50 +0800 |
commit | d76e6167bbc2fc3bc2e21b72a849a3c930480704 (patch) | |
tree | dd019e0a9a85c37906c2b055e291941dceb0ccc7 /net/relayd/Makefile | |
parent | 4d0adc262aecd07d253eea82f7bac66565f79d78 (diff) | |
download | freebsd-ports-gnome-d76e6167bbc2fc3bc2e21b72a849a3c930480704.tar.gz freebsd-ports-gnome-d76e6167bbc2fc3bc2e21b72a849a3c930480704.tar.zst freebsd-ports-gnome-d76e6167bbc2fc3bc2e21b72a849a3c930480704.zip |
- Update to 4.6.20090813
- Backport several patches from OpenBSD 4.7 and newer
- Fix build with FreeBSD 7 (arc4random.c)
- Fix user and group creation in pkginstall
- Add reload command to startup file
- Enable optional static build with libevent
- Take maintainership
PR: ports/147122
Approved by: kuriyama (private e-mail)
Diffstat (limited to 'net/relayd/Makefile')
-rw-r--r-- | net/relayd/Makefile | 54 |
1 files changed, 31 insertions, 23 deletions
diff --git a/net/relayd/Makefile b/net/relayd/Makefile index 46032fdc179a..10e1086af3f0 100644 --- a/net/relayd/Makefile +++ b/net/relayd/Makefile @@ -5,54 +5,62 @@ # $FreeBSD$ PORTNAME= relayd -PORTVERSION= 4.2.20071221 -PORTREVISION= 1 +PORTVERSION= 4.6.20090813 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= kuriyama +MASTER_SITE_SUBDIR= mm -MAINTAINER= kuriyama@FreeBSD.org -COMMENT= OpenBSD Relay Daemon +MAINTAINER= mm@FreeBSD.org +COMMENT= OpenBSD relay daemon -LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent +USE_BZIP2= yes +MANCOMPRESSED= yes -WRKSRC= ${WRKDIR}/tmp +WRKSRC= ${WRKDIR}/usr.sbin MAN5= relayd.conf.5 MAN8= relayctl.8 relayd.8 USE_RC_SUBR= relayd CFLAGS+= -I${PREFIX}/include -WRKSRCC= ${WRKDIR}/tmp/relayctl -WRKSRCD= ${WRKDIR}/tmp/relayd -_MAKE= ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_ARGS} +MAKE_ARGS+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man/man + RUSER= _relayd RGROUP= _relayd +PKGINSTALL= ${WRKDIR}/pkginstall +SUB_FILES+= pkg-install + +SUB_LIST+= RUSER=${RUSER} \ + RGROUP=${RGROUP} post-extract: - ${MKDIR} ${WRKSRC} - ${MV} ${WRKDIR}/relayctl ${WRKSRC}/ - ${MV} ${WRKDIR}/relayd ${WRKSRC}/ + @${CP} ${FILESDIR}/Makefile.all ${WRKSRC}/Makefile + @${CP} ${FILESDIR}/Makefile.relayctl ${WRKSRC}/relayctl/Makefile + @${CP} ${FILESDIR}/Makefile.relayd ${WRKSRC}/relayd/Makefile + @${CP} ${FILESDIR}/arc4random.c ${WRKSRC}/relayd pre-build: ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ - ${WRKSRCD}/relayd.h \ - ${WRKSRCD}/relayd.conf.5 ${WRKSRCD}/relayd.8 - -do-build: - (cd ${WRKSRCC}; ${_MAKE} ${ALL_TARGET}) - (cd ${WRKSRCD}; ${_MAKE} ${ALL_TARGET}) + ${WRKSRC}/relayd/relayd.h \ + ${WRKSRC}/relayd/relayd.conf.5 \ + ${WRKSRC}/relayd/relayd.8 pre-su-install: - @${SETENV} PKG_PREFIX=${PREFIX} RUSER=${RUSER} RGROUP=${RGROUP} \ + @${SETENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL -do-install: - (cd ${WRKSRCC}; ${_MAKE} ${INSTALL_TARGET} install-man) - (cd ${WRKSRCD}; ${_MAKE} ${INSTALL_TARGET} install-man) +OPTIONS= LIBEVENT_STATIC "Build with static libevent" Off .include <bsd.port.pre.mk> +.if defined(WITH_LIBEVENT_STATIC) +BUILD_DEPENDS= ${LOCALBASE}/lib/libevent.a:${PORTSDIR}/devel/libevent +MAKE_ARGS+= LIBEVENT=${LOCALBASE}/lib/libevent.a +.else +LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent +MAKE_ARGS+= LIBEVENT=-levent +.endif + .if (${OSVERSION} < 700049) && !defined(I_KNOW_WHAT_I_AM_DOING) IGNORE= needs a patched kernel to work correctly (http://www.openbsd.org/cgi-bin/cvsweb/src/sys/net/pf_table.c.diff?r1=1.67&r2=1.68) .endif |