aboutsummaryrefslogtreecommitdiffstats
path: root/security/krb4/Makefile
blob: 8e81805443ff88eb77c93b4ba59a04c7a6440009 (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
# Ports collection Makefile for:    krb4
# Date created:             03/04/2003
# Whom:                 nectar@FreeBSD.ORG
#
# $FreeBSD$
#

PORTNAME=   krb4
PORTVERSION=    1.2.1
PORTREVISION=   1
CATEGORIES= security ipv6
MASTER_SITES=   ftp://ftp.pdc.kth.se/pub/krb/src/

MAINTAINER= nectar@FreeBSD.ORG
COMMENT=    KTH Kerberos 4

CONFLICTS=  krb5-[0-9]* heimdal-[0-9]*
INSTALLS_SHLIB= yes
# Don't remove this.  This port installs several applications
# which have the same name as some in the base system (e.g.
# ftp, telnet, su).
PREFIX?=    ${LOCALBASE}/krb4
NO_MTREE=   yes # Otherwise we end up with dozens of extra directories in ${PREFIX}

PKGMESSAGE= ${WRKDIR}/pkg-message
GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=\
    --enable-shared     \
    --disable-otp       \
    --disable-afs-support   \
    --without-x
CONFIGURE_ENV+= \
    "CFLAGS=${CFLAGS}" \
    "CPPFLAGS=-DOPENSSL_DES_LIBDES_COMPATIBILITY" \
    "LDFLAGS=-Wl,-rpath,${PREFIX}/lib"

INFO=   kth-krb

post-install:
    ${SED} -e "s~%%PREFIX%%~${PREFIX}~g" \
        < ${.CURDIR}/pkg-message > ${PKGMESSAGE}
    @${ECHO_CMD} "*** ATTENTION ***"
    @${CAT} ${PKGMESSAGE}
    @${ECHO_CMD} "or simply \`make setuids'."

setuids:
.for file in rsh rcp rlogin su
    ${CHOWN} 0:0 ${PREFIX}/bin/${file}
    ${CHMOD} u+s ${PREFIX}/bin/${file}
.endfor

.include "Makefile.man"
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
CFLAGS+=    -fPIC
.endif
.include <bsd.port.post.mk>