aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2012-11-10 17:38:33 +0000
committerPawel Pekala <pawel@FreeBSD.org>2012-11-10 17:38:33 +0000
commitd01f1f816778d3a7d34110e01cb452925bdabc62 (patch)
tree4f272e5478fd885b30c35bcaee34e5923e19253a /security
parenta2e3234935eb37cfccf526bdcf6642bb4ab145e2 (diff)
downloadports-d01f1f816778d3a7d34110e01cb452925bdabc62.tar.gz
ports-d01f1f816778d3a7d34110e01cb452925bdabc62.zip
Notes
Diffstat (limited to 'security')
-rw-r--r--security/super/Makefile29
-rw-r--r--security/super/files/patch-Makefile.in9
-rw-r--r--security/super/pkg-plist13
3 files changed, 26 insertions, 25 deletions
diff --git a/security/super/Makefile b/security/super/Makefile
index da08e6080998..6268aed61db2 100644
--- a/security/super/Makefile
+++ b/security/super/Makefile
@@ -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>
diff --git a/security/super/files/patch-Makefile.in b/security/super/files/patch-Makefile.in
deleted file mode 100644
index 3ef262d9607f..000000000000
--- a/security/super/files/patch-Makefile.in
+++ /dev/null
@@ -1,9 +0,0 @@
---- Makefile.in.orig Fri Aug 2 04:28:10 2002
-+++ Makefile.in Sun Aug 4 00:45:14 2002
-@@ -182,3 +182,3 @@
-- ./mkdir_p -p755 $(DESTDIR)/$(BINDIR)
-- ./mkdir_p -p755 $(DESTDIR)/$(localstatedir)
-- ./mkdir_p -p755 $(DESTDIR)/$(sysconfdir)
-+ mkdir -p -m 755 $(DESTDIR)/$(BINDIR)
-+ mkdir -p -m 755 $(DESTDIR)/$(localstatedir)
-+ mkdir -p -m 755 $(DESTDIR)/$(sysconfdir)
diff --git a/security/super/pkg-plist b/security/super/pkg-plist
index 712705216bb9..b5e1382a4fc1 100644
--- a/security/super/pkg-plist
+++ b/security/super/pkg-plist
@@ -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%%