summaryrefslogtreecommitdiff
path: root/security/xdm-krb4/Makefile
blob: 32461506d13f8e65d9948408e8014f066ecb9ebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# $NetBSD: Makefile,v 1.15 2003/07/17 22:53:20 grant Exp $
#

DISTNAME=		xdm-krb4-3.3.6.3
PKGREVISION=		1
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_BUILDLINK2=		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/buildlink2.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"