2001-08-02 19:27:41 +02:00
|
|
|
# $NetBSD: Makefile,v 1.38 2001/08/02 17:27:41 jlam Exp $
|
1997-12-15 00:27:00 +01:00
|
|
|
#
|
|
|
|
|
2001-04-08 02:02:45 +02:00
|
|
|
DISTNAME= sudo-1.6.3p7
|
2000-12-06 07:33:39 +01:00
|
|
|
CATEGORIES= security
|
|
|
|
MASTER_SITES= http://www.courtesan.com/sudo/dist/ \
|
|
|
|
ftp://ftp.courtesan.com/pub/sudo/ \
|
|
|
|
ftp://ftp.cs.colorado.edu/pub/sudo/ \
|
|
|
|
ftp://ftp.uu.net/pub/security/sudo/ \
|
|
|
|
ftp://ftp.tux.org/pub/security/sudo/
|
1997-12-15 00:27:00 +01:00
|
|
|
|
2000-12-06 07:33:39 +01:00
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://www.courtesan.com/sudo/
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= Allow others to run commands as root
|
1999-08-31 21:26:40 +02:00
|
|
|
|
2001-08-02 19:27:41 +02:00
|
|
|
USE_BUILDLINK_ONLY= # defined
|
2001-06-26 02:49:54 +02:00
|
|
|
GNU_CONFIGURE= # defined
|
1998-07-01 21:09:42 +02:00
|
|
|
|
1999-03-30 17:37:00 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
2000-12-06 07:33:39 +01:00
|
|
|
CONFIGURE_ARGS+= --with-skey
|
1999-03-30 17:37:00 +02:00
|
|
|
.elif ${OPSYS} == "SunOS"
|
2000-12-06 07:33:39 +01:00
|
|
|
CONFIGURE_ARGS+= --without-skey
|
1999-03-30 17:37:00 +02:00
|
|
|
.endif
|
|
|
|
|
2001-03-04 04:26:50 +01:00
|
|
|
.if defined(KERBEROS)
|
2000-12-06 07:33:39 +01:00
|
|
|
USE_KERBEROS= # defined
|
2001-03-04 04:26:50 +01:00
|
|
|
CONFIGURE_ARGS+= --with-kerb4 --with-kerb5
|
1999-09-14 04:32:21 +02:00
|
|
|
.else
|
2001-03-04 04:26:50 +01:00
|
|
|
CONFIGURE_ARGS+= --without-kerb4 --without-kerb5
|
1999-09-13 15:24:48 +02:00
|
|
|
.endif
|
|
|
|
|
2000-12-06 07:33:39 +01:00
|
|
|
CONFIGURE_ARGS+= --with-nbsdops --disable-path-info
|
1999-12-30 23:51:28 +01:00
|
|
|
|
2000-12-06 07:33:39 +01:00
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST.common
|
|
|
|
PLIST_SRC+= ${PKGDIR}/PLIST.${LOWER_OPSYS}
|
2000-07-26 17:12:08 +02:00
|
|
|
|
2000-12-06 07:33:39 +01:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/sudo
|
|
|
|
EGDIR= ${PREFIX}/share/examples/sudo
|
1999-03-30 17:37:00 +02:00
|
|
|
|
2001-07-13 09:09:17 +02:00
|
|
|
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
|
|
|
|
INSTALL_FILE= ${WRKDIR}/INSTALL
|
|
|
|
|
|
|
|
FILES_SUBST= CAT=${CAT:Q}
|
|
|
|
FILES_SUBST+= CHMOD=${CHMOD:Q}
|
|
|
|
FILES_SUBST+= CHOWN=${CHOWN:Q}
|
|
|
|
FILES_SUBST+= CMP=${CMP:Q}
|
|
|
|
FILES_SUBST+= CP=${CP:Q}
|
|
|
|
FILES_SUBST+= RM=${RM:Q}
|
|
|
|
FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
|
|
|
|
${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE}
|
|
|
|
|
1997-12-15 00:38:21 +01:00
|
|
|
post-install:
|
2000-12-06 07:33:39 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/UPGRADE ${DOCDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sudoers ${EGDIR}/sudoers
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample.sudoers ${EGDIR}/sudoers.sample
|
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
|
1997-12-15 00:38:21 +01:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|