summaryrefslogtreecommitdiff
path: root/sysutils/su2/Makefile
blob: d2b47653b496ce21e6990d8a49f7e6b431cb4ccd (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
# $NetBSD: Makefile,v 1.8 2005/12/05 20:51:01 rillig Exp $
#

DISTNAME=		su2-1.3
CATEGORIES=		sysutils security
MASTER_SITES=		ftp://ftp.ccs.neu.edu/pub/sysadmin/

MAINTAINER=		ben@NetBSD.org
HOMEPAGE=		ftp://ftp.ccs.neu.edu/pub/sysadmin/
COMMENT=		Enhanced su, users su with own password + more

LICENSE=		no-profit
NO_CONFIGURE=		yes

SUBST_CLASSES+=		preproc
SUBST_MESSAGE.preproc=	"Correcting C preprocessor directives."
SUBST_STAGE.preproc=	post-patch
SUBST_FILES.preproc=	su2.c
SUBST_SED.preproc=	-e 's,^\(\# *else\).*,\1,' \
			-e 's,^\(\# *endif\).*,\1,'

LDLIBS=			-lcrypt

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
LDLIBS+=		-lcompat
.endif

MAKE_ENV+=		LDLIBS=${LDLIBS:Q}

post-extract:
	${CHMOD} -R og+w ${WRKSRC}

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