summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-10-15 11:53:17 +0000
committerRenato Botelho <garga@FreeBSD.org>2013-10-15 11:53:17 +0000
commit6c892ca4e2a9ca4610800989707c1ac50ccc9100 (patch)
treee4eaa47c099f12899a1171461c96d7eee9d1193a /net
parentsysutils/gdisk: take maintainership (diff)
- Support staging
- Respect ${CC}
Notes
Notes: svn path=/head/; revision=330390
Diffstat (limited to 'net')
-rw-r--r--net/rinetd/Makefile12
-rw-r--r--net/rinetd/files/patch-Makefile8
2 files changed, 10 insertions, 10 deletions
diff --git a/net/rinetd/Makefile b/net/rinetd/Makefile
index cbf9782c2233..56c7a2623e32 100644
--- a/net/rinetd/Makefile
+++ b/net/rinetd/Makefile
@@ -19,13 +19,12 @@ WRKSRC= ${WRKDIR}/rinetd-${PORTVERSION}
USE_DOS2UNIX= yes
-MAN8= rinetd.8
PORTDOCS= index.html
-PLIST_FILES= sbin/rinetd
+PLIST_FILES= sbin/rinetd \
+ man/man8/rinetd.8.gz
USE_RC_SUBR= rinetd
-NO_STAGE= yes
.include <bsd.port.pre.mk>
post-extract:
@@ -40,9 +39,10 @@ post-patch:
post-install:
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} ; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+.endfor
.endif
- @${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/net/rinetd/files/patch-Makefile b/net/rinetd/files/patch-Makefile
index 1e285ade8b5c..f0e1b68d01bf 100644
--- a/net/rinetd/files/patch-Makefile
+++ b/net/rinetd/files/patch-Makefile
@@ -9,14 +9,14 @@
+all: rinetd
+
+rinetd: rinetd.o match.o getopt.o
-+ cc ${CFLAGS} rinetd.o match.o getopt.o -o rinetd
++ ${CC} ${CFLAGS} rinetd.o match.o getopt.o -o rinetd
+
+getopt.o:
-+ cc ${CFLAGS} -c getopt.c
++ ${CC} ${CFLAGS} -c getopt.c
install: rinetd
- install -m 700 rinetd /usr/sbin
- install -m 644 rinetd.8 /usr/man/man8
-+ install -C -o root -g wheel -m 755 rinetd ${PREFIX}/sbin
-+ install -C -o root -g wheel -m 644 rinetd.8 ${PREFIX}/man/man8
++ install -s -m 755 rinetd ${DESTDIR}${PREFIX}/sbin
++ install -m 644 rinetd.8 ${DESTDIR}${PREFIX}/man/man8