summaryrefslogtreecommitdiff
path: root/security/sudo/Makefile
blob: 5fdb63265ab44a3d4a0c28b2f89a38d22b740b39 (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
# $NetBSD: Makefile,v 1.20 2000/01/28 00:33:21 jlam Exp $
# FreeBSD Id: Makefile,v 1.9 1997/11/12 03:24:41 obrien Exp
#

DISTNAME=	sudo-1.6.2
CATEGORIES=	security
MASTER_SITES=	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=	yes

.if ${OPSYS} == "NetBSD"
CONFIGURE_ARGS+=--with-skey
.elif ${OPSYS} == "SunOS"
CONFIGURE_ARGS+=--without-skey
.endif

.if defined(KERBEROS) && ${KERBEROS} == 4
USE_KERBEROS=	yes
CONFIGURE_ARGS+=--with-kerb4
.else
CONFIGURE_ARGS+=--without-kerb4
.endif

.if defined(KERBEROS) && ${KERBEROS} == 5
USE_KERBEROS=	yes
CONFIGURE_ARGS+=--with-kerb5
.else
CONFIGURE_ARGS+=--without-kerb5
.endif

CONFIGURE_ARGS+=--with-nbsdops --disable-path-info

# The UPGRADE file has important information on upgrading from a previous
# version of sudo.
#
MESSAGE_FILE=	${WRKSRC}/UPGRADE

pre-configure:
	cd ${WRKSRC}; ${LOCALBASE}/bin/autoconf

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/sudo
	${INSTALL_DATA} ${WRKSRC}/sudoers ${PREFIX}/share/examples/sudo/sudoers
	${INSTALL_DATA} ${WRKSRC}/sample.sudoers \
		${PREFIX}/share/examples/sudo/sudoers.sample

.include "../../mk/bsd.pkg.mk"