2020-05-03 19:22:50 +02:00
|
|
|
# $NetBSD: Makefile,v 1.47 2020/05/03 17:22:50 rillig Exp $
|
1999-02-23 19:20:59 +01:00
|
|
|
|
2009-02-24 04:24:15 +01:00
|
|
|
DISTNAME= delegate9.9.1
|
|
|
|
PKGNAME= delegate-9.9.1
|
2020-05-03 19:22:50 +02:00
|
|
|
PKGREVISION= 2
|
1999-02-23 19:28:34 +01:00
|
|
|
CATEGORIES= net
|
2017-01-19 19:52:01 +01:00
|
|
|
MASTER_SITES= http://www.delegate.org/anonftp/DeleGate/
|
|
|
|
MASTER_SITES+= ftp://ftp.u-aizu.ac.jp/pub/net/DeleGate/delegate.org/
|
1999-02-23 19:20:59 +01:00
|
|
|
|
2009-02-24 04:24:15 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-10-04 23:53:15 +02:00
|
|
|
HOMEPAGE= http://www.delegate.org/delegate/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= General purpose TCP/IP proxy system
|
1999-02-23 19:20:59 +01:00
|
|
|
|
2009-07-16 16:38:32 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
2003-07-30 13:37:01 +02:00
|
|
|
|
2020-05-03 19:22:50 +02:00
|
|
|
# several usages of array[char]: cgi.c was dangerous, see below;
|
|
|
|
# the other uses are all safe as of version 9.9.1.
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-Werror=char-subscripts
|
|
|
|
|
|
|
|
# Prevent undefined behavior when there are more than 127 environment
|
|
|
|
# variables, in which case argv and the rest of the stack would be
|
|
|
|
# interpreted as environment variables.
|
|
|
|
SUBST_CLASSES+= char
|
|
|
|
SUBST_STAGE.char= pre-configure
|
|
|
|
SUBST_FILES.char= src/cgi.c
|
|
|
|
SUBST_SED.char= -e 's|char ei;|int ei;|'
|
|
|
|
|
2003-07-30 13:37:01 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
BUILD_DEFS+= DELEGATE_MANAGER
|
2009-02-24 04:24:15 +01:00
|
|
|
BUILD_DEFS+= VARBASE
|
1999-02-23 19:28:34 +01:00
|
|
|
DELEGATE_MANAGER?= root@localhost
|
|
|
|
|
2003-07-30 13:37:01 +02:00
|
|
|
RCD_SCRIPTS= delegated
|
2005-12-05 21:49:47 +01:00
|
|
|
FILES_SUBST+= ADMIN=${DELEGATE_MANAGER:Q}
|
2003-07-30 13:37:01 +02:00
|
|
|
|
2019-11-03 12:45:28 +01:00
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/spool/delegate/cache ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 1777
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/spool/delegate-nobody nobody nobody 755
|
2003-07-30 13:37:01 +02:00
|
|
|
|
2009-07-16 16:38:32 +02:00
|
|
|
INSTALLATION_DIRS= sbin share/doc/delegate
|
2005-06-17 05:50:19 +02:00
|
|
|
|
2011-07-03 03:36:58 +02:00
|
|
|
MAKE_ENV+= SHELL=${CONFIG_SHELL}
|
|
|
|
|
1999-02-23 19:20:59 +01:00
|
|
|
pre-build:
|
2000-04-16 17:19:14 +02:00
|
|
|
@${ECHO} "ADMIN=${DELEGATE_MANAGER}" >> ${WRKSRC}/DELEGATE_CONF
|
1999-02-23 19:20:59 +01:00
|
|
|
|
|
|
|
do-install:
|
2009-07-16 16:38:32 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/delegated ${DESTDIR}${PREFIX}/sbin
|
2000-04-16 17:19:14 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/Manual.htm \
|
2009-07-16 16:38:32 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/doc/delegate/manual.html
|
2000-04-16 17:19:14 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/tutor-en.htm \
|
2009-07-16 16:38:32 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/doc/delegate/tutorial-en.html
|
2000-04-16 17:19:14 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/tutor-jp.htm \
|
2009-07-16 16:38:32 +02:00
|
|
|
${DESTDIR}${PREFIX}/share/doc/delegate/tutorial-jp.html
|
1999-02-23 19:20:59 +01:00
|
|
|
|
1999-02-23 19:28:34 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|