Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / stunnel / Makefile
blob8f13abb7a2caf950e686c17f6df8d2b40d1901f7
1 # $NetBSD: Makefile,v 1.81 2013/02/06 23:23:46 jperkin Exp $
3 DISTNAME= stunnel-4.55
4 CATEGORIES= security
5 MASTER_SITES= http://www.stunnel.org/downloads/
7 MAINTAINER= jym@NetBSD.org
8 HOMEPAGE= http://www.stunnel.org/
9 COMMENT= Universal SSL tunnel
10 LICENSE= gnu-gpl-v2
12 BUILD_DEFS+= VARBASE
13 USE_LIBTOOL= yes
14 GNU_CONFIGURE= yes
15 CONFIGURE_ARGS+= --localstatedir=${VARBASE}
16 CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
17 CONFIGURE_ARGS+= --with-ssl=${SSLBASE:Q}
19 .include "../../mk/bsd.prefs.mk"
21 STUNNEL_USER?= stunnel
22 STUNNEL_GROUP?= stunnel
23 PKG_HOME?= ${VARBASE}/chroot/stunnel
24 PKG_USERS= ${STUNNEL_USER}:${STUNNEL_GROUP}::Stunnel:${PKG_HOME}
25 PKG_GROUPS= ${STUNNEL_GROUP}
26 USER_GROUP= ${STUNNEL_USER} ${STUNNEL_GROUP}
28 PKG_SYSCONFSUBDIR= stunnel
29 PKG_SYSCONFDIR_PERMS= ${ROOT_USER} ${STUNNEL_GROUP} 0750
31 OWN_DIRS= ${PKG_HOME}/certs ${PKG_HOME}/crls
32 OWN_DIRS_PERMS= ${PKG_HOME}/pid ${USER_GROUP} 0750
33 CONF_FILES+= ${PREFIX}/share/examples/stunnel/stunnel.conf-sample \
34 ${PKG_SYSCONFDIR}/stunnel.conf
36 RCD_SCRIPTS= stunnel
38 REPLACE_PERL+= src/stunnel3.in
39 USE_TOOLS+= perl:run
41 SUBST_CLASSES+= chroot
42 SUBST_MESSAGE.chroot= Fix chroot path
43 SUBST_STAGE.chroot= pre-configure
44 SUBST_FILES.chroot= tools/stunnel.conf-sample.in
45 SUBST_SED.chroot+= -e 's|@prefix@/var/lib|@localstatedir@/chroot|'
47 SUBST_CLASSES+= stunnel
48 SUBST_MESSAGE.stunnel= Fix user, group and pid
49 SUBST_STAGE.stunnel= post-configure
50 SUBST_FILES.stunnel= tools/stunnel.conf-sample
51 SUBST_SED.stunnel= -e 's|setuid = nobody|setuid = ${STUNNEL_USER}|'
52 SUBST_SED.stunnel+= -e 's|setgid = nogroup|setgid = ${STUNNEL_GROUP}|'
53 SUBST_SED.stunnel+= -e 's|pid = /stunnel.pid|pid = /pid/stunnel.pid|'
55 .include "options.mk"
57 .include "../../devel/zlib/buildlink3.mk"
58 .include "../../security/openssl/buildlink3.mk"
59 .include "../../mk/bsd.pkg.mk"