pkgsrc/security/xdm-krb4/Makefile
reed 32d8f290c2 The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
2004-12-28 02:47:40 +00:00

46 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.18 2004/12/28 02:47:49 reed Exp $
#
DISTNAME= xdm-krb4-3.3.6.3
PKGREVISION= 3
CATEGORIES= security x11
MASTER_SITES= ftp://gutemine.geo.Uni-Koeln.DE/pub/xdm-krb4/
MAINTAINER= wennmach@NetBSD.org
COMMENT= Kerberos IV and AFS aware xdm
USE_BUILDLINK3= yes
USE_PKGINSTALL= yes
USE_IMAKE= yes
.if exists(/usr/lib/libroken.a)
KRB4_INCLUDE= -I/usr/include/kerberosIV
KRB4_LIBS= -L/usr/lib -lkafs -lkrb -ldes -lkrb5 -lroken -lasn1 -lcom_err
.else
. include "../../security/kth-krb4/buildlink3.mk"
KRB4_INCLUDE= -I${BUILDLINK_PREFIX.kth-krb4}/include/kerberosIV
KRB4_LIBS= -L${BUILDLINK_PREFIX.kth-krb4}/lib -lkafs -lkrb -ldes
.endif
MAKE_ENV+= XDM_EXAMPLEDIR="${EXAMPLEDIR}"
XDM_CONFDIR= ${PREFIX}/lib/X11/xdm
EXAMPLEDIR= ${PREFIX}/share/examples/${PKGBASE}
CFILES= GiveConsole TakeConsole
CFILES+= Xaccess Xresources Xservers Xsession Xsetup_0
CFILES+= xdm-config
.for FILE in ${CFILES}
CONF_FILES+= ${EXAMPLEDIR}/${FILE} ${XDM_CONFDIR}/${FILE}
.endfor
RCD_SCRIPTS= xdm_krb4
post-patch:
@${SED} -e 's|@KRB4_INCLUDE@|${KRB4_INCLUDE}|g' \
-e 's|@KRB4_LIBS@|${KRB4_LIBS}|g' \
${WRKSRC}/Imakefile.in > ${WRKSRC}/Imakefile
pre-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
.include "../../mk/bsd.pkg.mk"