aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2013-10-15 19:53:17 +0800
committergarga <garga@FreeBSD.org>2013-10-15 19:53:17 +0800
commit1ca924fa6d528e072d8acfd079b12b4b5969913b (patch)
treee4eaa47c099f12899a1171461c96d7eee9d1193a /net
parentb358f980346bf38f0a4573d19155ab47464aa9fd (diff)
downloadfreebsd-ports-gnome-1ca924fa6d528e072d8acfd079b12b4b5969913b.tar.gz
freebsd-ports-gnome-1ca924fa6d528e072d8acfd079b12b4b5969913b.tar.zst
freebsd-ports-gnome-1ca924fa6d528e072d8acfd079b12b4b5969913b.zip
- Support staging
- Respect ${CC}
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