freebsd-ports/security/super/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

45 lines
1 KiB
Makefile

# Created by: David O'Brien (obrien@NUXI.com)
# $FreeBSD$
PORTNAME= super
PORTVERSION= 3.30.0
CATEGORIES= security sysutils
MASTER_SITES= ftp://ftp.ucolick.org/pub/users/will/ \
http://www.ucolick.org/~will/RUE/super/
EXTRACT_SUFX= -tar.gz
MAINTAINER= ports@FreeBSD.org
COMMENT= Allow others to run commands as root
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
GNU_CONFIGURE= yes
MAN1= super.1 setuid.1
MAN5= super.5
NO_STAGE= yes
OPTIONS_DEFINE= DOCS EXAMPLES
.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 ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/sample.tab ${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/sample.cdmount ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/barebones.tab ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>