svn commit: r330390 - in head/net/rinetd: . files

Renato Botelho garga at FreeBSD.org
Tue Oct 15 11:53:18 UTC 2013


Author: garga
Date: Tue Oct 15 11:53:17 2013
New Revision: 330390
URL: http://svnweb.freebsd.org/changeset/ports/330390

Log:
  - Support staging
  - Respect ${CC}

Modified:
  head/net/rinetd/Makefile
  head/net/rinetd/files/patch-Makefile   (contents, props changed)

Modified: head/net/rinetd/Makefile
==============================================================================
--- head/net/rinetd/Makefile	Tue Oct 15 11:50:39 2013	(r330389)
+++ head/net/rinetd/Makefile	Tue Oct 15 11:53:17 2013	(r330390)
@@ -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>

Modified: head/net/rinetd/files/patch-Makefile
==============================================================================
--- head/net/rinetd/files/patch-Makefile	Tue Oct 15 11:50:39 2013	(r330389)
+++ head/net/rinetd/files/patch-Makefile	Tue Oct 15 11:53:17 2013	(r330390)
@@ -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
  


More information about the svn-ports-head mailing list