| @@ -1,162 +1,162 @@ | | | @@ -1,162 +1,162 @@ |
1 | # $NetBSD: Makefile,v 1.49 2010/05/20 14:21:23 tez Exp $ | | 1 | # $NetBSD: Makefile,v 1.50 2010/12/03 20:11:31 tez Exp $ |
2 | | | 2 | |
3 | DISTNAME= krb5-1.4.2 | | 3 | DISTNAME= krb5-1.4.2 |
4 | PKGNAME= mit-${DISTNAME:S/-signed$//} | | 4 | PKGNAME= mit-${DISTNAME:S/-signed$//} |
5 | PKGREVISION= 10 | | 5 | PKGREVISION= 11 |
6 | CATEGORIES= security | | 6 | CATEGORIES= security |
7 | MASTER_SITES= http://web.mit.edu/kerberos/dist/krb5/1.4/ | | 7 | MASTER_SITES= http://web.mit.edu/kerberos/dist/krb5/1.4/ |
8 | DISTFILES= ${DISTNAME}-signed${EXTRACT_SUFX} | | 8 | DISTFILES= ${DISTNAME}-signed${EXTRACT_SUFX} |
9 | EXTRACT_SUFX= .tar | | 9 | EXTRACT_SUFX= .tar |
10 | | | 10 | |
11 | MAINTAINER= tez@NetBSD.org | | 11 | MAINTAINER= tez@NetBSD.org |
12 | HOMEPAGE= http://web.mit.edu/kerberos/www/ | | 12 | HOMEPAGE= http://web.mit.edu/kerberos/www/ |
13 | COMMENT= MIT Kerberos 5 authentication system | | 13 | COMMENT= MIT Kerberos 5 authentication system |
14 | | | 14 | |
15 | PKG_DESTDIR_SUPPORT= user-destdir | | 15 | PKG_DESTDIR_SUPPORT= user-destdir |
16 | MAKE_JOBS_SAFE= no | | 16 | MAKE_JOBS_SAFE= no |
17 | | | 17 | |
18 | WRKSRC= ${WRKDIR}/${DISTNAME}/src | | 18 | WRKSRC= ${WRKDIR}/${DISTNAME}/src |
19 | | | 19 | |
20 | .include "../../mk/bsd.prefs.mk" | | 20 | .include "../../mk/bsd.prefs.mk" |
21 | | | 21 | |
22 | CONFLICTS+= heimdal-[0-9]* | | 22 | CONFLICTS+= heimdal-[0-9]* |
23 | CONFLICTS+= kth-krb4-[0-9]* | | 23 | CONFLICTS+= kth-krb4-[0-9]* |
24 | | | 24 | |
25 | USE_TOOLS+= autoconf gzcat yacc | | 25 | USE_TOOLS+= autoconf gzcat yacc |
26 | GNU_CONFIGURE= yes | | 26 | GNU_CONFIGURE= yes |
27 | USE_LIBTOOL= yes | | 27 | USE_LIBTOOL= yes |
28 | | | 28 | |
29 | # The actual KDC databases are stored in ${MIT_KRB5_STATEDIR}/krb5kdc. | | 29 | # The actual KDC databases are stored in ${MIT_KRB5_STATEDIR}/krb5kdc. |
30 | MIT_KRB5_STATEDIR?= ${VARBASE} | | 30 | MIT_KRB5_STATEDIR?= ${VARBASE} |
31 | FILES_SUBST+= MIT_KRB5_STATEDIR=${MIT_KRB5_STATEDIR:Q} | | 31 | FILES_SUBST+= MIT_KRB5_STATEDIR=${MIT_KRB5_STATEDIR:Q} |
32 | | | 32 | |
33 | BUILD_DEFS+= VARBASE | | 33 | BUILD_DEFS+= VARBASE |
34 | | | 34 | |
35 | CONFIGURE_ARGS+= --localstatedir=${MIT_KRB5_STATEDIR:Q} | | 35 | CONFIGURE_ARGS+= --localstatedir=${MIT_KRB5_STATEDIR:Q} |
36 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | | 36 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} |
37 | CONFIGURE_ARGS+= --enable-shared | | 37 | CONFIGURE_ARGS+= --enable-shared |
38 | CONFIGURE_ARGS+= --enable-pkgsrc-libtool | | 38 | CONFIGURE_ARGS+= --enable-pkgsrc-libtool |
39 | CONFIGURE_ARGS+= --enable-dns | | 39 | CONFIGURE_ARGS+= --enable-dns |
40 | CONFIGURE_ARGS+= --enable-kdc-replay-cache | | 40 | CONFIGURE_ARGS+= --enable-kdc-replay-cache |
41 | CONFIGURE_ARGS+= --disable-thread-support | | 41 | CONFIGURE_ARGS+= --disable-thread-support |
42 | CONFIGURE_ARGS+= --without-krb4 | | 42 | CONFIGURE_ARGS+= --without-krb4 |
43 | CONFIGURE_ARGS+= --without-tcl | | 43 | CONFIGURE_ARGS+= --without-tcl |
44 | MAKE_ENV+= ROOT_USER=${ROOT_USER:Q} | | 44 | MAKE_ENV+= ROOT_USER=${ROOT_USER:Q} |
45 | | | 45 | |
46 | PKG_OPTIONS_VAR= PKG_OPTIONS.mit-krb5 | | 46 | PKG_OPTIONS_VAR= PKG_OPTIONS.mit-krb5 |
47 | PKG_SUPPORTED_OPTIONS= kerberos-prefix-cmds | | 47 | PKG_SUPPORTED_OPTIONS= kerberos-prefix-cmds |
48 | | | 48 | |
49 | .include "../../mk/bsd.options.mk" | | 49 | .include "../../mk/bsd.options.mk" |
50 | | | 50 | |
51 | # Rename some of MIT krb5's applications so they won't conflict with | | 51 | # Rename some of MIT krb5's applications so they won't conflict with |
52 | # other packages. | | 52 | # other packages. |
53 | # | | 53 | # |
54 | .if !empty(PKG_OPTIONS:Mkerberos-prefix-cmds) | | 54 | .if !empty(PKG_OPTIONS:Mkerberos-prefix-cmds) |
55 | KRB5_PREFIX= k | | 55 | KRB5_PREFIX= k |
56 | MIT_KRB5_TRANSFORM= s/^ftp/${KRB5_PREFIX}&/; \ | | 56 | MIT_KRB5_TRANSFORM= s/^ftp/${KRB5_PREFIX}&/; \ |
57 | s/^rcp/${KRB5_PREFIX}&/; \ | | 57 | s/^rcp/${KRB5_PREFIX}&/; \ |
58 | s/^rlogin/${KRB5_PREFIX}&/; \ | | 58 | s/^rlogin/${KRB5_PREFIX}&/; \ |
59 | s/^rsh/${KRB5_PREFIX}&/; \ | | 59 | s/^rsh/${KRB5_PREFIX}&/; \ |
60 | s/^telnet/${KRB5_PREFIX}&/ | | 60 | s/^telnet/${KRB5_PREFIX}&/ |
61 | .else | | 61 | .else |
62 | KRB5_PREFIX= # empty | | 62 | KRB5_PREFIX= # empty |
63 | MIT_KRB5_TRANSFORM= s/^ftp/k&/ | | 63 | MIT_KRB5_TRANSFORM= s/^ftp/k&/ |
64 | .endif | | 64 | .endif |
65 | PLIST_SUBST+= KRB5_PREFIX=${KRB5_PREFIX:Q} | | 65 | PLIST_SUBST+= KRB5_PREFIX=${KRB5_PREFIX:Q} |
66 | CONFIGURE_ARGS+= --program-transform-name=${MIT_KRB5_TRANSFORM:Q} | | 66 | CONFIGURE_ARGS+= --program-transform-name=${MIT_KRB5_TRANSFORM:Q} |
67 | | | 67 | |
68 | # Fix some places in the MIT krb5 sources that don't point to the correct | | 68 | # Fix some places in the MIT krb5 sources that don't point to the correct |
69 | # Kerberized binaries when exec'ing programs. | | 69 | # Kerberized binaries when exec'ing programs. |
70 | # | | 70 | # |
71 | SUBST_CLASSES+= mit-krb5 | | 71 | SUBST_CLASSES+= mit-krb5 |
72 | SUBST_STAGE.mit-krb5= pre-configure | | 72 | SUBST_STAGE.mit-krb5= pre-configure |
73 | SUBST_FILES.mit-krb5= appl/bsd/Makefile.in include/krb5/stock/osconf.h | | 73 | SUBST_FILES.mit-krb5= appl/bsd/Makefile.in include/krb5/stock/osconf.h |
74 | SUBST_SED.mit-krb5= -e "/KRB5_PATH_RLOGIN/s,/rlogin,/${KRB5_PREFIX}rlogin,g" | | 74 | SUBST_SED.mit-krb5= -e "/KRB5_PATH_RLOGIN/s,/rlogin,/${KRB5_PREFIX}rlogin,g" |
75 | | | 75 | |
76 | # Fix autoconf incompatibility in new versions where substitutions won't be | | 76 | # Fix autoconf incompatibility in new versions where substitutions won't be |
77 | # processed properly. For more details see: | | 77 | # processed properly. For more details see: |
78 | # http://mailman.mit.edu/pipermail/krb5-bugs/2006-June/004587.html | | 78 | # http://mailman.mit.edu/pipermail/krb5-bugs/2006-June/004587.html |
79 | SUBST_CLASSES+= frag | | 79 | SUBST_CLASSES+= frag |
80 | SUBST_STAGE.frag= post-patch | | 80 | SUBST_STAGE.frag= post-patch |
81 | SUBST_FILES.frag= appl/telnet/libtelnet/Makefile.in \ | | 81 | SUBST_FILES.frag= appl/telnet/libtelnet/Makefile.in \ |
82 | lib/apputils/Makefile.in \ | | 82 | lib/apputils/Makefile.in \ |
83 | lib/crypto/Makefile.in \ | | 83 | lib/crypto/Makefile.in \ |
84 | lib/crypto/aes/Makefile.in \ | | 84 | lib/crypto/aes/Makefile.in \ |
85 | lib/crypto/arcfour/Makefile.in \ | | 85 | lib/crypto/arcfour/Makefile.in \ |
86 | lib/crypto/crc32/Makefile.in \ | | 86 | lib/crypto/crc32/Makefile.in \ |
87 | lib/crypto/des/Makefile.in \ | | 87 | lib/crypto/des/Makefile.in \ |
88 | lib/crypto/dk/Makefile.in \ | | 88 | lib/crypto/dk/Makefile.in \ |
89 | lib/crypto/enc_provider/Makefile.in \ | | 89 | lib/crypto/enc_provider/Makefile.in \ |
90 | lib/crypto/hash_provider/Makefile.in \ | | 90 | lib/crypto/hash_provider/Makefile.in \ |
91 | lib/crypto/keyhash_provider/Makefile.in \ | | 91 | lib/crypto/keyhash_provider/Makefile.in \ |
92 | lib/crypto/md4/Makefile.in \ | | 92 | lib/crypto/md4/Makefile.in \ |
93 | lib/crypto/md5/Makefile.in \ | | 93 | lib/crypto/md5/Makefile.in \ |
94 | lib/crypto/old/Makefile.in \ | | 94 | lib/crypto/old/Makefile.in \ |
95 | lib/crypto/raw/Makefile.in \ | | 95 | lib/crypto/raw/Makefile.in \ |
96 | lib/crypto/sha1/Makefile.in \ | | 96 | lib/crypto/sha1/Makefile.in \ |
97 | lib/crypto/yarrow/Makefile.in \ | | 97 | lib/crypto/yarrow/Makefile.in \ |
98 | lib/des425/Makefile.in \ | | 98 | lib/des425/Makefile.in \ |
99 | lib/gssapi/Makefile.in \ | | 99 | lib/gssapi/Makefile.in \ |
100 | lib/gssapi/generic/Makefile.in \ | | 100 | lib/gssapi/generic/Makefile.in \ |
101 | lib/gssapi/krb5/Makefile.in \ | | 101 | lib/gssapi/krb5/Makefile.in \ |
102 | lib/kadm5/Makefile.in \ | | 102 | lib/kadm5/Makefile.in \ |
103 | lib/kadm5/clnt/Makefile.in \ | | 103 | lib/kadm5/clnt/Makefile.in \ |
104 | lib/kadm5/srv/Makefile.in \ | | 104 | lib/kadm5/srv/Makefile.in \ |
105 | lib/kdb/Makefile.in \ | | 105 | lib/kdb/Makefile.in \ |
106 | lib/krb4/Makefile.in \ | | 106 | lib/krb4/Makefile.in \ |
107 | lib/krb5/Makefile.in \ | | 107 | lib/krb5/Makefile.in \ |
108 | lib/krb5/asn.1/Makefile.in \ | | 108 | lib/krb5/asn.1/Makefile.in \ |
109 | lib/krb5/ccache/Makefile.in \ | | 109 | lib/krb5/ccache/Makefile.in \ |
110 | lib/krb5/error_tables/Makefile.in \ | | 110 | lib/krb5/error_tables/Makefile.in \ |
111 | lib/krb5/keytab/Makefile.in \ | | 111 | lib/krb5/keytab/Makefile.in \ |
112 | lib/krb5/krb/Makefile.in \ | | 112 | lib/krb5/krb/Makefile.in \ |
113 | lib/krb5/os/Makefile.in \ | | 113 | lib/krb5/os/Makefile.in \ |
114 | lib/krb5/posix/Makefile.in \ | | 114 | lib/krb5/posix/Makefile.in \ |
115 | lib/krb5/rcache/Makefile.in \ | | 115 | lib/krb5/rcache/Makefile.in \ |
116 | lib/rpc/Makefile.in \ | | 116 | lib/rpc/Makefile.in \ |
117 | util/db2/Makefile.in \ | | 117 | util/db2/Makefile.in \ |
118 | util/db2/btree/Makefile.in \ | | 118 | util/db2/btree/Makefile.in \ |
119 | util/db2/clib/Makefile.in \ | | 119 | util/db2/clib/Makefile.in \ |
120 | util/db2/db/Makefile.in \ | | 120 | util/db2/db/Makefile.in \ |
121 | util/db2/hash/Makefile.in \ | | 121 | util/db2/hash/Makefile.in \ |
122 | util/db2/mpool/Makefile.in \ | | 122 | util/db2/mpool/Makefile.in \ |
123 | util/db2/recno/Makefile.in \ | | 123 | util/db2/recno/Makefile.in \ |
124 | util/et/Makefile.in \ | | 124 | util/et/Makefile.in \ |
125 | util/profile/Makefile.in \ | | 125 | util/profile/Makefile.in \ |
126 | util/pty/Makefile.in \ | | 126 | util/pty/Makefile.in \ |
127 | util/ss/Makefile.in \ | | 127 | util/ss/Makefile.in \ |
128 | util/support/Makefile.in | | 128 | util/support/Makefile.in |
129 | SUBST_SED.frag= -e "s/^\#.\\(@lib.*_frag@\\)/\\1/g" | | 129 | SUBST_SED.frag= -e "s/^\#.\\(@lib.*_frag@\\)/\\1/g" |
130 | | | 130 | |
131 | INFO_FILES= # PLIST | | 131 | INFO_FILES= # PLIST |
132 | | | 132 | |
133 | OWN_DIRS_PERMS= ${MIT_KRB5_STATEDIR}/krb5kdc \ | | 133 | OWN_DIRS_PERMS= ${MIT_KRB5_STATEDIR}/krb5kdc \ |
134 | ${ROOT_USER} ${ROOT_GROUP} 0700 | | 134 | ${ROOT_USER} ${ROOT_GROUP} 0700 |
135 | RCD_SCRIPTS= kadmind kdc | | 135 | RCD_SCRIPTS= kadmind kdc |
136 | | | 136 | |
137 | INSTALLATION_DIRS= bin include/gssapi include/gssrpc ${PKGINFODIR} \ | | 137 | INSTALLATION_DIRS= bin include/gssapi include/gssrpc ${PKGINFODIR} \ |
138 | lib ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 \ | | 138 | lib ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 \ |
139 | ${PKGMANDIR}/man8 sbin share/examples/krb5 | | 139 | ${PKGMANDIR}/man8 sbin share/examples/krb5 |
140 | | | 140 | |
141 | # The MIT krb5 distribution is actually a tar file that contains the | | 141 | # The MIT krb5 distribution is actually a tar file that contains the |
142 | # real .tar.gz distfile and a PGP signature. | | 142 | # real .tar.gz distfile and a PGP signature. |
143 | # | | 143 | # |
144 | post-extract: | | 144 | post-extract: |
145 | extract_file="${WRKDIR}/${DISTNAME}.tar.gz"; \ | | 145 | extract_file="${WRKDIR}/${DISTNAME}.tar.gz"; \ |
146 | cd ${WRKDIR} && ${EXTRACT_CMD} | | 146 | cd ${WRKDIR} && ${EXTRACT_CMD} |
147 | | | 147 | |
148 | pre-configure: | | 148 | pre-configure: |
149 | cd ${WRKSRC}; ${FIND} . -name configure -print | \ | | 149 | cd ${WRKSRC}; ${FIND} . -name configure -print | \ |
150 | ${XARGS} -n 1 ${DIRNAME} | \ | | 150 | ${XARGS} -n 1 ${DIRNAME} | \ |
151 | while read dir; do \ | | 151 | while read dir; do \ |
152 | ${ECHO} "=> Generating configure in $$dir"; \ | | 152 | ${ECHO} "=> Generating configure in $$dir"; \ |
153 | (cd $$dir && autoconf -I ${WRKSRC} -f); \ | | 153 | (cd $$dir && autoconf -I ${WRKSRC} -f); \ |
154 | done | | 154 | done |
155 | | | 155 | |
156 | post-install: | | 156 | post-install: |
157 | cd ${WRKSRC}/../doc; for f in *.info *.info-[0-9]*; do \ | | 157 | cd ${WRKSRC}/../doc; for f in *.info *.info-[0-9]*; do \ |
158 | ${TEST} ! -f "$$f" || \ | | 158 | ${TEST} ! -f "$$f" || \ |
159 | ${INSTALL_MAN} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR}; \ | | 159 | ${INSTALL_MAN} "$$f" ${DESTDIR}${PREFIX}/${PKGINFODIR}; \ |
160 | done | | 160 | done |
161 | | | 161 | |
162 | .include "../../mk/bsd.pkg.mk" | | 162 | .include "../../mk/bsd.pkg.mk" |