aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-12-15 13:35:32 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-12-15 13:35:48 +0000
commit612a6e7c6479acd09214b6d99c95cbdb26d40b90 (patch)
tree75e1d48452a86247b53af3368552de109d17f4c9
parent07f10cea7c5ec14e9ddc18575d4a2f2aeea74f0a (diff)
downloadalpine_aports-612a6e7c6479acd09214b6d99c95cbdb26d40b90.tar.bz2
alpine_aports-612a6e7c6479acd09214b6d99c95cbdb26d40b90.tar.xz
alpine_aports-612a6e7c6479acd09214b6d99c95cbdb26d40b90.zip
main/heimdal: upgrade to 1.4
-rw-r--r--main/heimdal/013_all_heimdal-pthread-lib.patch11
-rw-r--r--main/heimdal/APKBUILD44
-rw-r--r--main/heimdal/heimdal-1.4-make.patch88
3 files changed, 107 insertions, 36 deletions
diff --git a/main/heimdal/013_all_heimdal-pthread-lib.patch b/main/heimdal/013_all_heimdal-pthread-lib.patch
deleted file mode 100644
index 19f8794075..0000000000
--- a/main/heimdal/013_all_heimdal-pthread-lib.patch
+++ /dev/null
@@ -1,11 +0,0 @@
1--- heimdal-0.7.1/cf/pthreads.m4.old 2005-09-09 12:12:28.000000000 +0000
2+++ heimdal-0.7.1/cf/pthreads.m4 2005-09-17 22:23:23.000000000 +0000
3@@ -32,7 +32,7 @@
4 2.*)
5 native_pthread_support=yes
6 PTHREADS_CFLAGS=-pthread
7- PTHREADS_LIBS=-pthread
8+ PTHREADS_LIBS=-lpthread
9 ;;
10 esac
11 ;;
diff --git a/main/heimdal/APKBUILD b/main/heimdal/APKBUILD
index 36bae5db89..2f7efb84b2 100644
--- a/main/heimdal/APKBUILD
+++ b/main/heimdal/APKBUILD
@@ -1,11 +1,10 @@
1# Maintainer: Leonardo Arena <rnalrd@gmail.com> 1# Maintainer: Leonardo Arena <rnalrd@gmail.com>
2# Contributor: Natanael Copa <ncopa@alpinelinux.org> 2# Contributor: Natanael Copa <ncopa@alpinelinux.org>
3pkgname=heimdal 3pkgname=heimdal
4pkgver=1.3.3 4pkgver=1.4
5pkgrel=0 5pkgrel=0
6pkgdesc="An implementation of Kerberos 5" 6pkgdesc="An implementation of Kerberos 5"
7url="http://www.h5l.org/" 7url="http://www.h5l.org/"
8arch="x86 x86_64"
9license="BSD" 8license="BSD"
10depends= 9depends=
11makedepends="gawk readline-dev e2fsprogs-dev>=1.41.9-r2 sqlite-dev autoconf automake 10makedepends="gawk readline-dev e2fsprogs-dev>=1.41.9-r2 sqlite-dev autoconf automake
@@ -18,45 +17,42 @@ source="http://ftp4.de.freesbie.org/pub/misc/heimdal/src/$pkgname-$pkgver.tar.gz
18002_all_heimdal-fPIC.patch 17002_all_heimdal-fPIC.patch
19003_all_heimdal-rxapps.patch 18003_all_heimdal-rxapps.patch
20005_all_heimdal-suid_fix.patch 19005_all_heimdal-suid_fix.patch
21013_all_heimdal-pthread-lib.patch
22014_all_heimdal-path.patch 20014_all_heimdal-path.patch
23100-check-com_err-pthread.patch 21heimdal-1.4-make.patch
24heimdal-locate_plugin-header.patch
25" 22"
26
27# krb5.h needs com_err.h 23# krb5.h needs com_err.h
28depends_dev="e2fsprogs-dev" 24depends_dev="e2fsprogs-dev"
29 25
26_builddir="$srcdir/$pkgname-$pkgver"
27
30prepare() { 28prepare() {
31 [ -e /usr/lib/libasn1.so ] && echo "## remove old heimdal pkg first ##" && return 1 29 [ -e /usr/lib/libasn1.so ] && echo "## remove old heimdal pkg first ##" && return 1
32 30
33 cd "$srcdir/$pkgname-$pkgver" 31 cd "$_builddir"
34 32
35 patch -Np0 -i ../001_all_heimdal-no_libedit.patch || return 1 33 for i in ../*.patch
36 patch -Np0 -i ../002_all_heimdal-fPIC.patch || return 1 34 do
37 patch -Np0 -i ../003_all_heimdal-rxapps.patch || return 1 35 msg "Applying patch $i"
38 patch -Np0 -i ../005_all_heimdal-suid_fix.patch || return 1 36 patch -p0 -i $i || return 1
39 patch -Np1 -i ../013_all_heimdal-pthread-lib.patch || return 1 37 done
40 patch -Np0 -i ../014_all_heimdal-path.patch || return 1
41 patch -Np1 -i ../100-check-com_err-pthread.patch || return 1
42 patch -Np1 -i ../heimdal-locate_plugin-header.patch || return 1
43 38
44 # name clash with ruserpass in netdb.h 39 # name clash with ruserpass in netdb.h
45 sed -i -e 's/ruserpass/ruserpw/g' appl/ftp/ftp/*.[ch] || return 1 40 sed -i -e 's/ruserpass/ruserpw/g' appl/ftp/ftp/*.[ch] || return 1
46 41
47 sed -i -e 's|var/heimdal|var/lib/heimdal|g' configure.in \ 42# sed -i -e 's|var/heimdal|var/lib/heimdal|g' configure.in \
48 doc/setup.texi doc/heimdal.info kadmin/kadmind.8 kdc/kdc.8 \ 43# doc/setup.texi doc/heimdal.info kadmin/kadmind.8 kdc/kdc.8 \
49 lib/hdb/hdb.h lib/krb5/krb5.conf.5 lib/krb5/krb5.conf.cat5 44# lib/hdb/hdb.h lib/krb5/krb5.conf.5 lib/krb5/krb5.conf.cat5 || return 1
50 45
51 sh ./autogen.sh || return 1 46 sh ./autogen.sh || return 1
52} 47}
53 48
54build() { 49build() {
55 cd "$srcdir/$pkgname-$pkgver" 50 cd "$_builddir"
56 export LDFLAGS="${LDFLAGS} -Wl,--as-needed" 51 export LDFLAGS="${LDFLAGS} -Wl,--as-needed"
57 52
58 ./configure --prefix=/usr \ 53 ./configure --prefix=/usr \
59 --enable-shared=yes --without-x \ 54 --enable-shared=yes \
55 --without-x \
60 --disable-berkeley-db \ 56 --disable-berkeley-db \
61 --with-readline-lib=/usr/lib \ 57 --with-readline-lib=/usr/lib \
62 --with-readline-include=/usr/include/readline \ 58 --with-readline-include=/usr/include/readline \
@@ -66,7 +62,7 @@ build() {
66} 62}
67 63
68package() { 64package() {
69 cd "$srcdir/$pkgname-$pkgver" 65 cd "$_builddir"
70 make DESTDIR="$pkgdir" exec_prefix=/usr sysconfdir=/etc \ 66 make DESTDIR="$pkgdir" exec_prefix=/usr sysconfdir=/etc \
71 mandir=/usr/share/man infodir=/usr/share/info datadir=/var/lib/heimdal \ 67 mandir=/usr/share/man infodir=/usr/share/info datadir=/var/lib/heimdal \
72 localstatedir=/var/lib/heimdal libexecdir=/usr/sbin install 68 localstatedir=/var/lib/heimdal libexecdir=/usr/sbin install
@@ -166,12 +162,10 @@ kf() {
166 mv $pkgdir/usr/bin/kf $subpkgdir/usr/bin/kf 162 mv $pkgdir/usr/bin/kf $subpkgdir/usr/bin/kf
167} 163}
168 164
169md5sums="963c09f1b14c41660be70b55fae9f163 heimdal-1.3.3.tar.gz 165md5sums="31d08bbf47a77827fe97ef3f52b4c9c4 heimdal-1.4.tar.gz
17098e28f11f906c967aac22d6184102c9e 001_all_heimdal-no_libedit.patch 16698e28f11f906c967aac22d6184102c9e 001_all_heimdal-no_libedit.patch
1716d5571bdedba2e2423b90bccdbac2c0a 002_all_heimdal-fPIC.patch 1676d5571bdedba2e2423b90bccdbac2c0a 002_all_heimdal-fPIC.patch
1722feec3924ee5230b54175b4d4000c872 003_all_heimdal-rxapps.patch 1682feec3924ee5230b54175b4d4000c872 003_all_heimdal-rxapps.patch
17345aeb207f360f9f4e9e0fabc8bfeecbc 005_all_heimdal-suid_fix.patch 16945aeb207f360f9f4e9e0fabc8bfeecbc 005_all_heimdal-suid_fix.patch
1741b8665b771c4eb6b56ea8582c96e56e3 013_all_heimdal-pthread-lib.patch
1758208ae8c0b6ff5ab4f64af1693e9e396 014_all_heimdal-path.patch 1708208ae8c0b6ff5ab4f64af1693e9e396 014_all_heimdal-path.patch
176e73205200f9641b5d969427ffb04282a 100-check-com_err-pthread.patch 171fa1753ec676029cd59a3ef24da55c144 heimdal-1.4-make.patch"
177248ab80b44568171e432a23524f4fe39 heimdal-locate_plugin-header.patch"
diff --git a/main/heimdal/heimdal-1.4-make.patch b/main/heimdal/heimdal-1.4-make.patch
new file mode 100644
index 0000000000..e49903f27f
--- /dev/null
+++ b/main/heimdal/heimdal-1.4-make.patch
@@ -0,0 +1,88 @@
1--- lib/asn1/Makefile.am~ 2010-09-13 09:23:34.000000000 +0200
2+++ lib/asn1/Makefile.am 2010-10-02 12:08:31.833815205 +0200
3@@ -641,16 +641,16 @@
4
5 asn1parse.h: asn1parse.c
6
7-$(gen_files_krb5) krb5_asn1.hx krb5_asn1-priv.hx: krb5_asn1_files
8-$(gen_files_pkinit) pkinit_asn1.hx pkinit_asn1-priv.hx: pkinit_asn1_files
9-$(gen_files_pkcs8) pkcs8_asn1.hx pkcs8_asn1-priv.hx: pkcs8_asn1_files
10-$(gen_files_pkcs9) pkcs9_asn1.hx pkcs9_asn1-priv.hx: pkcs9_asn1_files
11-$(gen_files_pkcs12) pkcs12_asn1.hx pkcs12_asn1-priv.hx: pkcs12_asn1_files
12-$(gen_files_digest) digest_asn1.hx digest_asn1-priv.hx: digest_asn1_files
13-$(gen_files_kx509) kx509_asn1.hx kx509_asn1-priv.hx: kx509_asn1_files
14-$(gen_files_rfc2459) rfc2459_asn1.hx rfc2459_asn1-priv.hx: rfc2459_asn1_files
15-$(gen_files_cms) cms_asn1.hx cms_asn1-priv.hx: cms_asn1_files
16-$(gen_files_test) test_asn1.hx test_asn1-priv.hx: test_asn1_files
17+$(gen_files_krb5) krb5_asn1.hx krb5_asn1-priv.hx krb5_asn1-template.c: krb5_asn1_files
18+$(gen_files_pkinit) pkinit_asn1.hx pkinit_asn1-priv.hx pkinit_asn1-template.c: pkinit_asn1_files
19+$(gen_files_pkcs8) pkcs8_asn1.hx pkcs8_asn1-priv.hx pkcs8_asn1-template.c: pkcs8_asn1_files
20+$(gen_files_pkcs9) pkcs9_asn1.hx pkcs9_asn1-priv.hx pkcs9_asn1-template.c: pkcs9_asn1_files
21+$(gen_files_pkcs12) pkcs12_asn1.hx pkcs12_asn1-priv.hx pkcs12_asn1-template.c: pkcs12_asn1_files
22+$(gen_files_digest) digest_asn1.hx digest_asn1-priv.hx digest_asn1-template.c: digest_asn1_files
23+$(gen_files_kx509) kx509_asn1.hx kx509_asn1-priv.hx kx509_asn1-template.c: kx509_asn1_files
24+$(gen_files_rfc2459) rfc2459_asn1.hx rfc2459_asn1-priv.hx rfc2459_asn1-template.c: rfc2459_asn1_files
25+$(gen_files_cms) cms_asn1.hx cms_asn1-priv.hx cms_asn1-template.c: cms_asn1_files
26+$(gen_files_test) test_asn1.hx test_asn1-priv.hx test_asn1-template.c: test_asn1_files
27
28 rfc2459_asn1_files: asn1_compile$(EXEEXT) $(srcdir)/rfc2459.asn1
29 $(ASN1_COMPILE) --preserve-binary=TBSCertificate --preserve-binary=TBSCRLCertList --preserve-binary=Name --sequence=GeneralNames --sequence=Extensions --sequence=CRLDistributionPoints $(srcdir)/rfc2459.asn1 rfc2459_asn1 || (rm -f rfc2459_asn1_files ; exit 1)
30--- lib/kadm5/Makefile.am~ 2010-10-14 12:25:00.959390842 +0200
31+++ lib/kadm5/Makefile.am 2010-10-14 14:14:14.533473440 +0200
32@@ -159,6 +159,8 @@
33
34 kadm5_err.h: kadm5_err.et
35
36+$(dist_libkadm5clnt_la_SOURCES): $(nodist_libkadm5clnt_la_SOURCES)
37+
38 $(libkadm5clnt_la_OBJECTS) $(libkadm5srv_la_OBJECTS): $(srcdir)/kadm5-protos.h $(srcdir)/kadm5-private.h
39
40 proto_opts = -q -R '^(_|kadm5_c_|kadm5_s_|kadm5_log)' -P comment
41--- lib/otp/Makefile.am~ 2010-10-02 12:17:36.532815203 +0200
42+++ lib/otp/Makefile.am 2010-10-02 12:29:52.970815205 +0200
43@@ -74,3 +74,5 @@
44 strlcpy.c \
45 strlwr.c \
46 strncasecmp.c
47+
48+EXTRA_DIST = version-script.map
49--- /dev/null 2010-10-02 12:15:38.061000000 +0200
50+++ lib/otp/version-script.map 2010-10-02 12:18:06.229815205 +0200
51@@ -0,0 +1,25 @@
52+HEIMDAL_OTP_1.0 {
53+ global:
54+ otp_challenge;
55+ otp_checksum;
56+ otp_db_close;
57+ otp_db_open;
58+ otp_delete;
59+ otp_error;
60+ otp_find_alg;
61+ otp_get;
62+ otp_parse;
63+ otp_parse_altdict;
64+ otp_parse_hex;
65+ otp_parse_stddict;
66+ otp_print_hex;
67+ otp_print_hex_extended;
68+ otp_print_stddict;
69+ otp_print_stddict_extended;
70+ otp_put;
71+ otp_simple_get;
72+ otp_verify_user;
73+ otp_verify_user_1;
74+ local:
75+ *;
76+};
77diff --git lib/krb5/version-script.map b/lib/krb5/version-script.map
78index f31620c..39f5146 100644
79--- lib/krb5/version-script.map
80+++ lib/krb5/version-script.map
81@@ -105,6 +105,7 @@ HEIMDAL_KRB5_2.0 {
82 krb5_cc_get_type;
83 krb5_cc_get_version;
84 krb5_cc_initialize;
85+ krb5_cc_last_change_time;
86 krb5_cc_move;
87 krb5_cc_new_unique;
88 krb5_cc_next_cred;