diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2009-05-14 11:35:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-14 12:41:26 +0000 |
commit | d894c5d210a8bc11cc52ac298a313f2680a605d7 (patch) | |
tree | 7f2708be64acf119651964552fc065eec61a606b | |
parent | b846d7e6a255de4c6ad97c536e0093952abca2f1 (diff) | |
download | alpine_aports-d894c5d210a8bc11cc52ac298a313f2680a605d7.tar.bz2 alpine_aports-d894c5d210a8bc11cc52ac298a313f2680a605d7.tar.xz alpine_aports-d894c5d210a8bc11cc52ac298a313f2680a605d7.zip |
testing/heimdal: some clients/daemons in subpkgs, fixed install dirs, init scripts added
-rw-r--r-- | testing/heimdal/APKBUILD | 72 | ||||
-rwxr-xr-x | testing/heimdal/heimdal-kadmind.init | 24 | ||||
-rwxr-xr-x | testing/heimdal/heimdal-kdc.init | 23 | ||||
-rwxr-xr-x | testing/heimdal/heimdal-kpasswdd.init | 24 |
4 files changed, 135 insertions, 8 deletions
diff --git a/testing/heimdal/APKBUILD b/testing/heimdal/APKBUILD index a070d8c119..ba9964812d 100644 --- a/testing/heimdal/APKBUILD +++ b/testing/heimdal/APKBUILD | |||
@@ -8,7 +8,7 @@ license="BSD" | |||
8 | depends="uclibc sqlite readline openssl" | 8 | depends="uclibc sqlite readline openssl" |
9 | makedepends="gawk readline-dev" | 9 | makedepends="gawk readline-dev" |
10 | install= | 10 | install= |
11 | subpackages="$pkgname-doc $pkgname-dev" | 11 | subpackages="$pkgname-doc $pkgname-dev $pkgname-ftp $pkgname-telnet $pkgname-su $pkgname-rsh" |
12 | source="http://www.h5l.org/dist/src/$pkgname-$pkgver.tar.gz | 12 | source="http://www.h5l.org/dist/src/$pkgname-$pkgver.tar.gz |
13 | 001_all_heimdal-no_libedit.patch | 13 | 001_all_heimdal-no_libedit.patch |
14 | 002_all_heimdal-fPIC.patch | 14 | 002_all_heimdal-fPIC.patch |
@@ -45,16 +45,11 @@ build() { | |||
45 | doc/setup.texi doc/heimdal.info kadmin/kadmind.8 kdc/kdc.8 \ | 45 | doc/setup.texi doc/heimdal.info kadmin/kadmind.8 kdc/kdc.8 \ |
46 | lib/hdb/hdb.h lib/krb5/krb5.conf.5 lib/krb5/krb5.conf.cat5 | 46 | lib/hdb/hdb.h lib/krb5/krb5.conf.5 lib/krb5/krb5.conf.cat5 |
47 | 47 | ||
48 | |||
48 | export LDFLAGS="${LDFLAGS} -Wl,--as-needed" | 49 | export LDFLAGS="${LDFLAGS} -Wl,--as-needed" |
49 | 50 | ||
50 | ./configure --prefix=/usr \ | 51 | ./configure --prefix=/usr \ |
51 | --enable-shared=yes --without-x \ | 52 | --enable-shared=yes --without-x \ |
52 | --sysconfdir=/etc \ | ||
53 | --mandir=/usr/share/man \ | ||
54 | --infodir=/usr/share/info | ||
55 | --datadir=/var/lib/heimdal \ | ||
56 | --localstatedir=/var/lib/heimdal \ | ||
57 | --libexecdir=/usr/sbin \ | ||
58 | --disable-berkeley-db \ | 53 | --disable-berkeley-db \ |
59 | --disable-netinfo \ | 54 | --disable-netinfo \ |
60 | --with-readline-lib=/usr/lib \ | 55 | --with-readline-lib=/usr/lib \ |
@@ -62,7 +57,68 @@ build() { | |||
62 | --with-openssl=/usr | 57 | --with-openssl=/usr |
63 | 58 | ||
64 | make || return 1 | 59 | make || return 1 |
65 | make DESTDIR="$pkgdir" install | 60 | make DESTDIR="$pkgdir" exec_prefix=/usr sysconfdir=/etc \ |
61 | mandir=/usr/share/man infodir=/usr/share/info datadir=/var/lib/heimdal \ | ||
62 | localstatedir=/var/lib/heimdal libexecdir=/usr/sbin install | ||
63 | |||
64 | install -m644 -D krb5.conf ${pkgdir}/etc/krb5.conf || return 1 | ||
65 | install -m755 -D ../../heimdal-kadmind.init ${pkgdir}/etc/init.d/heimdal-kadmind | ||
66 | install -m755 -D ../../heimdal-kdc.init ${pkgdir}/etc/init.d/heimdal-kdc | ||
67 | install -m755 -D ../../heimdal-kpasswdd.init ${pkgdir}/etc/init.d/heimdal-kpasswdd | ||
68 | |||
69 | # Rename daemons and their manpages | ||
70 | for i in telnetd ftpd rshd; do | ||
71 | mv ${pkgdir}/usr/share/man/man8/${i}.8 ${pkgdir}/usr/share/man/man8/k${i}.8 || return 1 | ||
72 | mv ${pkgdir}/usr/sbin/${i} ${pkgdir}/usr/sbin/k${i} || return 1 | ||
73 | done | ||
74 | |||
75 | # Rename clients and their manpages | ||
76 | for i in rcp rsh telnet ftp su login; do | ||
77 | if [ -f ${pkgdir}/usr/share/man/man1/${i}.1 ]; then | ||
78 | mv ${pkgdir}/usr/share/man/man1/${i}.1 ${pkgdir}/usr/share/man/man1/k${i}.1 || return 1 | ||
79 | fi | ||
80 | mv ${pkgdir}/usr/bin/${i} ${pkgdir}/usr/bin/k${i} || return 1 | ||
81 | done | ||
82 | rm -rf ${pkgdir}/usr/share/man/cat{1,3,5,8} | ||
83 | |||
84 | # Remove conflicts | ||
85 | rm ${pkgdir}/usr/share/man/man5/ftpusers.5* | ||
86 | |||
87 | # Compress info pages | ||
88 | for page in heimdal hx509; do | ||
89 | gzip -9 ${pkgdir}/usr/share/info/${page}.info | ||
90 | done | ||
91 | |||
92 | # Install the license | ||
93 | install -d ${pkgdir}/usr/share/licenses/${pkgname} | ||
94 | install -D -m644 ${srcdir}/${pkgname}-${pkgver}/LICENSE \ | ||
95 | ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1 | ||
96 | } | ||
97 | |||
98 | ftp() { | ||
99 | mkdir -p $subpkgdir/usr/bin/ | ||
100 | mv $pkgdir/usr/bin/kftp $subpkgdir/usr/bin/kftp | ||
101 | mkdir -p $subpkgdir/usr/sbin/ | ||
102 | mv $pkgdir/usr/sbin/kftpd $subpkgdir/usr/sbin/kftpd | ||
103 | } | ||
104 | |||
105 | telnet() { | ||
106 | mkdir -p $subpkgdir/usr/bin/ | ||
107 | mv $pkgdir/usr/bin/ktelnet $subpkgdir/usr/bin/ktelnet | ||
108 | mkdir -p $subpkgdir/usr/sbin/ | ||
109 | mv $pkgdir/usr/sbin/ktelnetd $subpkgdir/usr/sbin/ktelnetd | ||
110 | } | ||
111 | |||
112 | su() { | ||
113 | mkdir -p $subpkgdir/usr/bin/ | ||
114 | mv $pkgdir/usr/bin/ksu $subpkgdir/usr/bin/ksu | ||
115 | } | ||
116 | |||
117 | rsh() { | ||
118 | mkdir -p $subpkgdir/usr/bin/ | ||
119 | mv $pkgdir/usr/bin/krsh $subpkgdir/usr/bin/krsh | ||
120 | mkdir -p $subpkgdir/usr/sbin/ | ||
121 | mv $pkgdir/usr/sbin/krshd $subpkgdir/usr/sbin/krshd | ||
66 | } | 122 | } |
67 | 123 | ||
68 | md5sums="6e5028077e2a6b101a4a72801ba71b9e heimdal-1.2.1.tar.gz | 124 | md5sums="6e5028077e2a6b101a4a72801ba71b9e heimdal-1.2.1.tar.gz |
diff --git a/testing/heimdal/heimdal-kadmind.init b/testing/heimdal/heimdal-kadmind.init new file mode 100755 index 0000000000..b58ac994df --- /dev/null +++ b/testing/heimdal/heimdal-kadmind.init | |||
@@ -0,0 +1,24 @@ | |||
1 | #!/sbin/runscript | ||
2 | # Copyright 1999-2004 Gentoo Foundation | ||
3 | # Distributed under the terms of the GNU General Public License v2 | ||
4 | # $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/files/heimdal-kadmind,v 1.3 2004/09/13 22:44:54 solar Exp $ | ||
5 | |||
6 | depend() { | ||
7 | need net | ||
8 | use heimdal-kdc | ||
9 | after logger | ||
10 | } | ||
11 | |||
12 | start() { | ||
13 | ebegin "Starting heimdal kadmind" | ||
14 | /usr/sbin/kadmind & | ||
15 | echo $! > /var/run/heimdal-kadmind.pid | ||
16 | eend $? | ||
17 | } | ||
18 | |||
19 | stop() { | ||
20 | ebegin "Stopping heimdal kadmind" | ||
21 | start-stop-daemon --stop --quiet --exec \ | ||
22 | /usr/sbin/kadmind | ||
23 | eend $? | ||
24 | } | ||
diff --git a/testing/heimdal/heimdal-kdc.init b/testing/heimdal/heimdal-kdc.init new file mode 100755 index 0000000000..753a101c30 --- /dev/null +++ b/testing/heimdal/heimdal-kdc.init | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/sbin/runscript | ||
2 | # Copyright 1999-2004 Gentoo Foundation | ||
3 | # Distributed under the terms of the GNU General Public License v2 | ||
4 | # $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/files/heimdal-kdc,v 1.2 2004/09/13 15:40:34 dragonheart Exp $ | ||
5 | |||
6 | depend() { | ||
7 | need net | ||
8 | after logger | ||
9 | } | ||
10 | |||
11 | start() { | ||
12 | ebegin "Starting heimdal kdc" | ||
13 | start-stop-daemon --start --quiet --exec \ | ||
14 | /usr/sbin/kdc -- --detach | ||
15 | eend $? | ||
16 | } | ||
17 | |||
18 | stop() { | ||
19 | ebegin "Stopping heimdal kdc" | ||
20 | start-stop-daemon --stop --quiet --exec \ | ||
21 | /usr/sbin/kdc | ||
22 | eend $? | ||
23 | } | ||
diff --git a/testing/heimdal/heimdal-kpasswdd.init b/testing/heimdal/heimdal-kpasswdd.init new file mode 100755 index 0000000000..517cb86210 --- /dev/null +++ b/testing/heimdal/heimdal-kpasswdd.init | |||
@@ -0,0 +1,24 @@ | |||
1 | #!/sbin/runscript | ||
2 | # Copyright 1999-2004 Gentoo Foundation | ||
3 | # Distributed under the terms of the GNU General Public License v2 | ||
4 | # $Header: /var/cvsroot/gentoo-x86/app-crypt/heimdal/files/heimdal-kpasswdd,v 1.3 2004/09/13 22:44:54 solar Exp $ | ||
5 | |||
6 | depend() { | ||
7 | need net | ||
8 | use heimdal-kdc | ||
9 | after logger | ||
10 | } | ||
11 | |||
12 | start() { | ||
13 | ebegin "Starting heimdal kpasswdd" | ||
14 | start-stop-daemon --background --start --quiet --exec \ | ||
15 | /usr/sbin/kpasswdd | ||
16 | eend $? | ||
17 | } | ||
18 | |||
19 | stop() { | ||
20 | ebegin "Stopping heimdal kpasswdd" | ||
21 | start-stop-daemon --stop --quiet --exec \ | ||
22 | /usr/sbin/kpasswdd | ||
23 | eend $? | ||
24 | } | ||