pkgsrc/security/stud/Makefile
jym 67372736ca Import stud-0.3pl53.
Description:

stud is a network proxy that terminates TLS/SSL connections and forwards
the unencrypted traffic to some backend. It's designed to handle 10s
of thousands of connections efficiently on multicore machines.
stud has very few features. It is designed to be paired with an
intelligent backend like haproxy or nginx.
2013-03-16 19:41:35 +00:00

62 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.1 2013/03/16 19:41:35 jym Exp $
#
PKGNAME= stud-0.3p53
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"