Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2012 17:38:34 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307297 - in head/security/super: . files
Message-ID:  <201211101738.qAAHcYh5070153@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Sat Nov 10 17:38:33 2012
New Revision: 307297
URL: http://svnweb.freebsd.org/changeset/ports/307297

Log:
  - Add LICENSE
  - Add MAKE_JOBS_SAFE
  - Support PORTEXAMPLES
  - Replace patch with REINPLACE_CMD
  
  PR:             ports/172063
  Submitted by:   KATO Tsuguru <tkato432@yahoo.com>
  Feature safe:   yes

Deleted:
  head/security/super/files/patch-Makefile.in
Modified:
  head/security/super/Makefile
  head/security/super/pkg-plist

Modified: head/security/super/Makefile
==============================================================================
--- head/security/super/Makefile	Sat Nov 10 17:30:22 2012	(r307296)
+++ head/security/super/Makefile	Sat Nov 10 17:38:33 2012	(r307297)
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for:  super
-# Date created:			  Fri Mar 18, 1997
-# Whom:				  David O'Brien (obrien@NUXI.com)
-#
+# Created by: David O'Brien (obrien@NUXI.com)
 # $FreeBSD$
-#
 
 PORTNAME=	super
 PORTVERSION=	3.30.0
@@ -16,17 +11,31 @@ EXTRACT_SUFX=	-tar.gz
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Allow others to run commands as root
 
+LICENSE=	GPLv1
+
 GNU_CONFIGURE=	yes
+MAKE_JOBS_SAFE=	yes
+
 MAN1=		super.1 setuid.1
 MAN5=		super.5
 
+.include <bsd.port.options.mk>
+
+post-patch:
+	@${REINPLACE_CMD} 's|\.\/mkdir_p -p755|mkdir -p -m 755|g' \
+		${WRKSRC}/Makefile.in
+
 post-install:
 	@${STRIP_CMD} ${PREFIX}/bin/super ${PREFIX}/bin/setuid
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
-	@${INSTALL_DATA} ${FILESDIR}/sample.tab ${FILESDIR}/sample.cdmount \
-		${WRKSRC}/barebones.tab ${EXAMPLESDIR}
-	@${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
+	${INSTALL_DATA} ${FILESDIR}/sample.tab ${EXAMPLESDIR}
+	${INSTALL_DATA} ${FILESDIR}/sample.cdmount ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/barebones.tab ${EXAMPLESDIR}
 .endif
 
 .include <bsd.port.mk>

Modified: head/security/super/pkg-plist
==============================================================================
--- head/security/super/pkg-plist	Sat Nov 10 17:30:22 2012	(r307296)
+++ head/security/super/pkg-plist	Sat Nov 10 17:38:33 2012	(r307297)
@@ -1,9 +1,10 @@
-bin/super
+# $FreeBSD$
 bin/setuid
-@unexec if cmp -s %D/etc/super.tab %D/%%PORTDOCS%%/share/examples/super/barebones.tab; then rm -f %D/etc/super.tab; fi
-%%PORTDOCS%%%%EXAMPLESDIR%%/sample.tab
-%%PORTDOCS%%%%EXAMPLESDIR%%/barebones.tab
-%%PORTDOCS%%%%EXAMPLESDIR%%/sample.cdmount
+bin/super
+%%PORTEXAMPLES%%@unexec if cmp -s %D/etc/super.tab %D/%%EXAMPLESDIR%%/barebones.tab; then rm -f %D/etc/super.tab; fi
 %%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/barebones.tab
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.cdmount
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.tab
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
 %%PORTDOCS%%@dirrm %%DOCSDIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211101738.qAAHcYh5070153>