svn commit: r359840 - head/sysutils/userneu

Vanilla I. Shu vanilla at FreeBSD.org
Mon Jun 30 13:29:08 UTC 2014


Author: vanilla
Date: Mon Jun 30 13:29:07 2014
New Revision: 359840
URL: http://svnweb.freebsd.org/changeset/ports/359840
QAT: https://qat.redports.org/buildarchive/r359840/

Log:
  1: Stagify.
  2: add LICENSE
  3: use options helper.
  
  Approved by:	portmgr@ (blanket approval)

Modified:
  head/sysutils/userneu/Makefile
  head/sysutils/userneu/pkg-plist

Modified: head/sysutils/userneu/Makefile
==============================================================================
--- head/sysutils/userneu/Makefile	Mon Jun 30 13:28:22 2014	(r359839)
+++ head/sysutils/userneu/Makefile	Mon Jun 30 13:29:07 2014	(r359840)
@@ -13,33 +13,34 @@ DISTNAME=	${PORTNAME}-${PORTVERSION}_1
 MAINTAINER=	fehlner at gmx.de
 COMMENT=	Account management and creation tool
 
-RUN_DEPENDS=	\
-    p5-Crypt-PasswdMD5>=0:${PORTSDIR}/security/p5-Crypt-PasswdMD5 \
-    p5-Crypt-RandPasswd>=0:${PORTSDIR}/security/p5-Crypt-RandPasswd
+LICENSE=	GPLv2
 
-USES=		perl5
+RUN_DEPENDS=	p5-Crypt-PasswdMD5>=0:${PORTSDIR}/security/p5-Crypt-PasswdMD5 \
+	    p5-Crypt-RandPasswd>=0:${PORTSDIR}/security/p5-Crypt-RandPasswd
+
+USES=		perl5 shebangfix
 USE_PERL5=	run
 NO_BUILD=	yes
+SHEBANG_FILES=	userquick.pl smbrepair.pl userneu.pl
 
 CONFLICTS=	userneu-devel-[0-9]*
 
 SCRIPTS=	userneu.pl userquick.pl smbrepair.pl
-MAN8=		userneu.8 userquick.8
 DOCS=		BUGS CHANGES CREDITS REQUIREMENTS TODO \
 		doc/README doc/INSTALL doc/userneu.pod doc/userquick.pod
 EXAMPLES=	list-sample
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
 do-install:
-	cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN8} ${MANPREFIX}/man/man8
-	cd ${WRKSRC} && ${INSTALL_SCRIPT} ${SCRIPTS} ${PREFIX}/sbin
-	@${MKDIR} ${EXAMPLESDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+	cd ${WRKSRC}/doc && ${INSTALL_MAN} userneu.8 userquick.8 ${STAGEDIR}${MANPREFIX}/man/man8
+	cd ${WRKSRC} && ${INSTALL_SCRIPT} ${SCRIPTS} ${STAGEDIR}${PREFIX}/sbin
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/sysutils/userneu/pkg-plist
==============================================================================
--- head/sysutils/userneu/pkg-plist	Mon Jun 30 13:28:22 2014	(r359839)
+++ head/sysutils/userneu/pkg-plist	Mon Jun 30 13:29:07 2014	(r359840)
@@ -1,3 +1,5 @@
+man/man8/userneu.8.gz
+man/man8/userquick.8.gz
 sbin/userneu.pl
 sbin/userquick.pl
 sbin/smbrepair.pl


More information about the svn-ports-all mailing list