1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- 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
This commit is contained in:
Pawel Pekala 2012-11-10 17:38:33 +00:00
parent a2e3234935
commit d01f1f8167
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307297
3 changed files with 26 additions and 25 deletions

View File

@ -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>

View File

@ -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)

View File

@ -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%%