mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-19 08:13:21 +00:00
- Fix build on gcc 4.1
PR: ports/110568 Submitted by: Ed Schouten <ed@fxq.nl> (maintainer) - While here, modernize USE_RC_SUBR and kill FreeBSD 4.X bits
This commit is contained in:
parent
bf377710f9
commit
9a49082dc3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=188328
@ -13,30 +13,19 @@ MASTER_SITES= ftp://ftp.pasta.cs.uit.no/pub/Vermicelli/
|
||||
MAINTAINER= ed@fxq.nl
|
||||
COMMENT= DNS proxy that supports IPv6 <==> IPv4 record translation
|
||||
|
||||
USE_RC_SUBR= yes
|
||||
USE_RC_SUBR= totd
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
MAN8= totd.8
|
||||
PLIST_FILES= etc/totd.conf.sample sbin/totd
|
||||
|
||||
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 500000
|
||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-ne_mesg.c \
|
||||
${FILESDIR}/extra-patch-tcp_response.c
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/^CC/d' ${WRKSRC}/${MAKEFILE}.in
|
||||
.if ${OSVERSION} < 500000
|
||||
@${REINPLACE_CMD} -e 's/%zd/%d/g' ${WRKSRC}/*.c
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${FILESDIR}/totd.conf.sample ${PREFIX}/etc
|
||||
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${FILESDIR}/totd.sh > ${PREFIX}/etc/rc.d/totd.sh
|
||||
@${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/totd.sh
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
11
dns/totd/files/patch-Makefile.in
Normal file
11
dns/totd/files/patch-Makefile.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.in Tue Mar 20 07:13:19 2007
|
||||
+++ Makefile.in Tue Mar 20 07:14:28 2007
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
INSTALL = /usr/bin/install
|
||||
|
||||
-CFLAGS = @CFLAGS@ @DEFS@ -Werror -Wall -DTOTCONF=\"$(TOT_CONFIG_FILE)\" @OPTFLAGS@ $(INCLUDEPATH)
|
||||
+CFLAGS = @CFLAGS@ @DEFS@ -Wall -DTOTCONF=\"$(TOT_CONFIG_FILE)\" @OPTFLAGS@ $(INCLUDEPATH)
|
||||
|
||||
# When debugging is enabled by --enable-malloc-debug flag to the configure
|
||||
# script, the @DBMALLOC@ substitution will contain the empty string, thus
|
@ -1,3 +0,0 @@
|
||||
sbin/totd
|
||||
etc/rc.d/totd.sh
|
||||
etc/totd.conf.sample
|
Loading…
Reference in New Issue
Block a user