63 lines
1.7 KiB
Makefile
63 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2014/02/12 23:18:37 tron Exp $
|
|
#
|
|
|
|
PKGNAME= stud-0.3p53
|
|
PKGREVISION= 1
|
|
CATEGORIES= security
|
|
MAINTAINER= jym@NetBSD.org
|
|
HOMEPAGE= http://github.com/bumptech/stud
|
|
COMMENT= Scalable TLS Unwrapping Daemon
|
|
LICENSE= 2-clause-bsd
|
|
|
|
MASTER_SITES= http://rohara.fedorapeople.org/stud/
|
|
DISTNAME= bumptech-stud-0.3-51-g0b88039
|
|
WRKSRC= ${WRKDIR}/bumptech-stud-0b88039
|
|
|
|
USE_TOOLS+= gmake pax:run
|
|
|
|
BUILD_DEFS+= STUD_USER STUD_GROUP VARBASE
|
|
|
|
STUD_USER?= stud
|
|
STUD_GROUP?= stud
|
|
# Default file that should contain the X509 certificates PEM file
|
|
STUD_CERTS?= ${PKG_SYSCONFDIR}/certs.pem
|
|
STUD_HOME?= ${VARBASE}/chroot/stud
|
|
|
|
PKG_GROUPS?= ${STUD_GROUP}
|
|
PKG_USERS?= ${STUD_USER}:${STUD_GROUP}
|
|
PKG_GECOS.${STUD_USER}= stud daemon user
|
|
PKG_HOME.${STUD_USER}= ${STUD_HOME}
|
|
|
|
RCD_SCRIPTS= stud
|
|
|
|
EGDIR= ${PREFIX}/share/examples/stud
|
|
OWN_DIRS= ${STUD_HOME}
|
|
INSTALLATION_DIRS+= bin ${EGDIR}
|
|
|
|
FILES_SUBST+= STUD_HOME=${STUD_HOME:Q}
|
|
|
|
SUBST_CLASSES+= studconf
|
|
SUBST_STAGE.studconf= pre-configure
|
|
SUBST_FILES.studconf= stud.conf
|
|
SUBST_VARS.studconf= STUD_USER STUD_GROUP STUD_HOME STUD_CERTS
|
|
SUBST_MESSAGE.studconf= Set default configuration values.
|
|
|
|
SUBST_CLASSES+= makefile
|
|
SUBST_STAGE.makefile= pre-configure
|
|
SUBST_FILES.makefile= Makefile
|
|
SUBST_VARS.makefile= PREFIX
|
|
SUBST_MESSAGE.makefile= Set prefix path.
|
|
|
|
PKG_SYSCONFSUBDIR= stud
|
|
PKG_SYSCONFDIR_PERMS= ${ROOT_USER} ${STUD_GROUP} 0750
|
|
CONF_FILES+= ${EGDIR}/stud.conf ${PKG_SYSCONFDIR}/stud.conf
|
|
|
|
post-extract:
|
|
${CP} ${FILESDIR}/stud.conf ${WRKSRC}/stud.conf
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/stud.conf ${DESTDIR}${EGDIR}/stud.conf
|
|
|
|
.include "../../devel/libev/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|