diff options
author | leeym <leeym@FreeBSD.org> | 2005-07-16 09:23:02 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2005-07-16 09:23:02 +0800 |
commit | ccaaf22f13d72cd29bf2699b07010a1a42a29bfb (patch) | |
tree | 3c847c3ecdfadab518caa70bf22499d40e56142e /dns/dnsmasq/Makefile | |
parent | 88d96fa84418a6187f822c24c8d0804632273830 (diff) | |
download | freebsd-ports-gnome-ccaaf22f13d72cd29bf2699b07010a1a42a29bfb.tar.gz freebsd-ports-gnome-ccaaf22f13d72cd29bf2699b07010a1a42a29bfb.tar.zst freebsd-ports-gnome-ccaaf22f13d72cd29bf2699b07010a1a42a29bfb.zip |
- utilize USE_RCORDER / USE_RC_SUBR to solve this problem when OSVERSION > 500037
PR: 80054
Patched by: leeym
Submitted by: Thomas Schweikle <tps@vr-web.de>
Approved by: maintainer timeout
Diffstat (limited to 'dns/dnsmasq/Makefile')
-rw-r--r-- | dns/dnsmasq/Makefile | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/dns/dnsmasq/Makefile b/dns/dnsmasq/Makefile index f3cf22ce5310..687af49afdc0 100644 --- a/dns/dnsmasq/Makefile +++ b/dns/dnsmasq/Makefile @@ -13,28 +13,27 @@ MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/ MAINTAINER= steven@honson.org COMMENT= Lightweight, easy to configure DNS forwarder and DHCP server -USE_REINPLACE= yes -USE_RC_SUBR= yes - MAN8= dnsmasq.8 -PLIST_FILES= sbin/dnsmasq etc/dnsmasq.conf.example etc/rc.d/dnsmasq.sh +PLIST_FILES= sbin/dnsmasq etc/dnsmasq.conf.example + +USE_GETOPT_LONG=yes +MAKE_ENV= LIBS="${LDFLAGS}" RPM_OPT_FLAGS="${CPPFLAGS}" -USE_GETOPT_LONG= yes -MAKE_ENV+= "LIBS=${LDFLAGS}" .if defined(WITHOUT_IPV6) -MAKE_ENV+= RPM_OPT_FLAGS="${CPPFLAGS} -DNO_IPV6" -.else -MAKE_ENV+= RPM_OPT_FLAGS="${CPPFLAGS}" +MAKE_ENV+= -DNO_IPV6 .endif -post-build: - @${SED} -e "s|%%RC_SUBR%%|${RC_SUBR}|g;s|%%PREFIX%%|${PREFIX}|g" \ - <${FILESDIR}/dnsmasq.sh >${WRKDIR}/dnsmasq.sh +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500037 +USE_RC_SUBR= dnsmasq.sh +.else +USE_RCORDER= dnsmasq.sh +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/dnsmasq ${PREFIX}/sbin ${INSTALL_DATA} ${WRKSRC}/dnsmasq.conf.example ${PREFIX}/etc - ${INSTALL_SCRIPT} ${WRKDIR}/dnsmasq.sh ${PREFIX}/etc/rc.d ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${PREFIX}/man/man8 -.include <bsd.port.mk> +.include <bsd.port.post.mk> |