blob: 305a3ff01862706d97d239af38ebb8a9f0a87af9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $NetBSD: Makefile,v 1.27 2000/12/06 06:33:39 jlam Exp $
# FreeBSD Id: Makefile,v 1.9 1997/11/12 03:24:41 obrien Exp
#
DISTNAME= sudo-1.6.3p5
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/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.courtesan.com/sudo/
BUILD_DEPENDS+= ${LOCALBASE}/bin/autoconf:../../devel/autoconf
.include "../../mk/bsd.prefs.mk"
GNU_CONFIGURE= # defined
.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+= --with-skey
.elif ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --without-skey
.endif
.if defined(KERBEROS) && ${KERBEROS} == 4
USE_KERBEROS= # defined
CONFIGURE_ARGS+= --with-kerb4
.else
CONFIGURE_ARGS+= --without-kerb4
.endif
.if defined(KERBEROS) && ${KERBEROS} == 5
USE_KERBEROS= # defined
CONFIGURE_ARGS+= --with-kerb5
.else
CONFIGURE_ARGS+= --without-kerb5
.endif
CONFIGURE_ARGS+= --with-nbsdops --disable-path-info
PLIST_SRC= ${PKGDIR}/PLIST.common
PLIST_SRC+= ${PKGDIR}/PLIST.${LOWER_OPSYS}
MESSAGE_FILE= ${WRKDIR}/MESSAGE
DOCDIR= ${PREFIX}/share/doc/sudo
EGDIR= ${PREFIX}/share/examples/sudo
pre-configure:
cd ${WRKSRC} && autoconf
post-build:
${SED} -e "s,@PREFIX@,${PREFIX},g" \
< ${PKGDIR}/MESSAGE > ${MESSAGE_FILE}
post-install:
${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
.include "../../mk/bsd.pkg.mk"
|