INSTALL/DEINSTALL script creation within pkgsrc. If an INSTALL or DEINSTALL script is found in the package directory, it is automatically used as a template for the pkginstall-generated scripts. If instead, they should be used simply as the full scripts, then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC explicitly, e.g.: INSTALL_SRC= ${PKGDIR}/INSTALL DEINSTALL_SRC= # emtpy As part of the restructuring of the pkginstall framework internals, we now *always* generate temporary INSTALL or DEINSTALL scripts. By comparing these temporary scripts with minimal INSTALL/DEINSTALL scripts formed from only the base templates, we determine whether or not the INSTALL/DEINSTALL scripts are actually needed by the package (see the generate-install-scripts target in bsd.pkginstall.mk). In addition, more variables in the framework have been made private. The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are more sensible names given the very few exported variables in this framework. The only public variables relating to the templates are: INSTALL_SRC INSTALL_TEMPLATE DEINSTALL_SRC DEINSTALL_TEMPLATE HEADER_TEMPLATE The packages in pkgsrc have been modified to reflect the changes in the pkginstall framework.
83 lines
2.4 KiB
Makefile
83 lines
2.4 KiB
Makefile
# $NetBSD: Makefile,v 1.49 2006/03/14 01:14:27 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= silc-server-1.0.2
|
|
CATEGORIES= chat security
|
|
MASTER_SITES= http://www.silcnet.org/download/server/sources/ \
|
|
ftp://ftp.silcnet.org/silc/server/sources/ \
|
|
http://www.fi.silcnet.org/download/server/sources/ \
|
|
ftp://ftp.au.silcnet.org/pub/silcnet/server/sources/ \
|
|
http://www.at.silcnet.org/download/server/sources/
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= salo@NetBSD.org
|
|
HOMEPAGE= http://www.silcnet.org/
|
|
COMMENT= Server for the Secure Internet Live Conferencing (SILC) protocol
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
SHLIBTOOL_OVERRIDE= libtool */*/*/libtool
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
SILCD_USER?= silcd
|
|
SILCD_GROUP?= silcd
|
|
PKG_GROUPS= ${SILCD_GROUP}
|
|
PKG_USERS= ${SILCD_USER}:${SILCD_GROUP}::SILC\ Server\ user
|
|
|
|
PKG_SYSCONFSUBDIR?= ${PKGBASE}
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
MAKE_ENV+= examplesdir=${EGDIR:Q}
|
|
|
|
CONF_FILES_MODE= 0600
|
|
CONF_FILES+= ${EGDIR}/silcd.conf.default \
|
|
${PKG_SYSCONFDIR}/silcd.conf
|
|
CONF_FILES+= ${EGDIR}/silcalgs.conf.default \
|
|
${PKG_SYSCONFDIR}/silcalgs.conf
|
|
CONF_FILES_PERMS+= ${EGDIR}/motd.txt.default ${PKG_SYSCONFDIR}/motd.txt \
|
|
${ROOT_USER} ${ROOT_GROUP} 0644
|
|
|
|
RCD_SCRIPTS= silcd
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
RCD_SCRIPT_SRC.silcd= ${FILESDIR}/silcd.sh
|
|
.else
|
|
RCD_SCRIPT_SRC.silcd= ${FILESDIR}/silcd.generic
|
|
.endif
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/log/silcd ${SILCD_USER} ${SILCD_GROUP} 0700
|
|
|
|
CONFIGURE_ARGS+= --libdir=${PREFIX}/lib/${PKGBASE}
|
|
CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/${PKGBASE}
|
|
CONFIGURE_ARGS+= --with-etcdir=${PKG_SYSCONFDIR:Q}
|
|
CONFIGURE_ARGS+= --with-silcd-config-file=${PKG_SYSCONFDIR}/silcd.conf
|
|
CONFIGURE_ARGS+= --with-simdir=${PREFIX}/lib/${PKGBASE}/modules
|
|
CONFIGURE_ARGS+= --with-logsdir=${VARBASE}/log/silcd
|
|
CONFIGURE_ARGS+= --with-silcd-pid-file=${VARBASE}/run/silcd.pid
|
|
CONFIGURE_ARGS+= --without-iconv
|
|
CONFIGURE_ARGS+= --without-libtoolfix
|
|
CONFIGURE_ARGS+= --enable-shared
|
|
|
|
# XXX: Avoid an ICE in gcc2 on sparc64
|
|
#
|
|
CONFIGURE_ENV+= F77=${FALSE:Q}
|
|
|
|
.if ${MACHINE_ARCH} != "i386"
|
|
CONFIGURE_ARGS+= --disable-asm
|
|
.endif
|
|
|
|
.include "options.mk"
|
|
|
|
SUBST_CLASSES+= paths
|
|
SUBST_STAGE.paths= post-patch
|
|
SUBST_FILES.paths= motd.txt
|
|
SUBST_SED.paths= -e 's,@PREFIX@,${PREFIX},'
|
|
|
|
post-extract:
|
|
@${CP} ${FILESDIR}/motd.txt ${WRKSRC}
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/motd.txt ${EGDIR}/motd.txt.default
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|