svn commit: r358774 - head/comms/minicom

Johan van Selst johans at FreeBSD.org
Sun Jun 22 09:27:14 UTC 2014


Author: johans
Date: Sun Jun 22 09:27:13 2014
New Revision: 358774
URL: http://svnweb.freebsd.org/changeset/ports/358774
QAT: https://qat.redports.org/buildarchive/r358774/

Log:
  Use plist directives instead of chown to allow build as non-root
  Resulting package is identical
  
  Submitted by:	Kimmo Paasiala <kpaasial at icloud.com>

Modified:
  head/comms/minicom/Makefile
  head/comms/minicom/pkg-plist

Modified: head/comms/minicom/Makefile
==============================================================================
--- head/comms/minicom/Makefile	Sun Jun 22 09:26:25 2014	(r358773)
+++ head/comms/minicom/Makefile	Sun Jun 22 09:27:13 2014	(r358774)
@@ -27,8 +27,6 @@ CONFIGURE_ARGS+=	--enable-dfl-baud=57600
 			--enable-lock-dir=/var/spool/lock \
 			--enable-dfl-port=/dev/cuau0
 
-.include <bsd.port.pre.mk>
-
 post-patch:
 	${REINPLACE_CMD} -e "s@/usr/local/bin/@${LOCALBASE}/bin/@; \
 		s@/sz@/lsz@;s@/sb@/lsb@;s@/sx@/lsx@;s@/rz@/lrz@; \
@@ -37,11 +35,7 @@ post-patch:
 		${WRKSRC}/Makefile.in
 
 post-install:
-	${CHOWN} uucp:dialer ${STAGEDIR}${PREFIX}/bin/minicom
-	${CHMOD} 4511 ${STAGEDIR}${PREFIX}/bin/minicom
-	${INSTALL} -d -o root -g wheel -m 0755 ${STAGEDIR}${PREFIX}/etc/minicom
-	${CHOWN} uucp ${STAGEDIR}${PREFIX}/etc/minicom
-.if ${PORT_OPTIONS:MDOCS}
+	${INSTALL} -d -m 0755 ${STAGEDIR}${PREFIX}/etc/minicom
 	${INSTALL} -d -o root -g wheel -m 0755 ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}/
 	${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}/
@@ -49,6 +43,5 @@ post-install:
 	(umask 022 && cd ${WRKSRC} && ${TAR} --exclude '*/Makefile*' \
 		 --exclude '*.orig' -chf - extras doc | ${TAR}  -xf - -C \
 		${STAGEDIR}${DOCSDIR})
-.endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/comms/minicom/pkg-plist
==============================================================================
--- head/comms/minicom/pkg-plist	Sun Jun 22 09:26:25 2014	(r358773)
+++ head/comms/minicom/pkg-plist	Sun Jun 22 09:27:13 2014	(r358774)
@@ -1,4 +1,10 @@
+ at owner uucp
+ at group dialer
+ at mode 4511
 bin/minicom
+ at owner
+ at group
+ at mode
 bin/xminicom
 bin/runscript
 bin/ascii-xfr
@@ -24,9 +30,9 @@ man/man1/xminicom.1.gz
 %%NLS%%share/locale/sv/LC_MESSAGES/minicom.mo
 %%NLS%%share/locale/vi/LC_MESSAGES/minicom.mo
 %%NLS%%share/locale/zh_TW/LC_MESSAGES/minicom.mo
- at exec if [ ! -d %D/etc/minicom ] ; then /bin/mkdir -p %D/etc/minicom ; fi
- at exec /usr/sbin/chown uucp %D/etc/minicom
+ at owner uucp
 @dirrmtry etc/minicom
+ at owner
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
 %%PORTDOCS%%%%DOCSDIR%%/COPYING
 %%PORTDOCS%%%%DOCSDIR%%/ChangeLog


More information about the svn-ports-head mailing list