Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 16449 | Differences between
and this patch

Collapse All | Expand All

(-)mit-krb5.orig/ChangeLog (-1 / +6 lines)
Lines 1-6 Link Here
1
# ChangeLog for app-crypt/mit-krb5
1
# ChangeLog for app-crypt/mit-krb5
2
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
2
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
3
# $Header: /home/cvsroot/gentoo-x86/app-crypt/mit-krb5/ChangeLog,v 1.4 2003/03/30 17:40:52 aliz Exp $
3
# $Header: $
4
5
  date; name <mail> mit-krb5-1.2.7.ebuild :
6
  Initd script split, merge mit packages into one mit-krb5 ebuild,
7
  support for static build with USE="static", have html docs installed, pass
8
  $CFLAGS and $CXXFLAGS to configure, remove the unnecessary 1.2.2 patch.
4
9
5
*mit-krb5-1.2.7 (30 Mar 2003)
10
*mit-krb5-1.2.7 (30 Mar 2003)
6
11
(-)mit-krb5.orig/files/mit-krb5kadmind.initd (+31 lines)
Line 0 Link Here
1
#!/sbin/runscript
2
3
#---------------------------------------------------------------------------
4
# This script starts/stops the MIT Kerberos 5 Admin daemon
5
#---------------------------------------------------------------------------
6
7
daemon="MIT Kerberos 5 Admin daemon"	
8
exec="/usr/sbin/kadmind"
9
10
opts="start stop restart"
11
12
depend() {
13
	need net mit-krb5kdc 
14
}
15
16
start() {
17
	ebegin "Starting $daemon"
18
	start-stop-daemon --start --quiet --exec ${exec} 1>&2
19
	eend $? "Error starting $daemon"
20
}
21
22
stop() { 
23
        ebegin "Stopping $daemon"
24
        start-stop-daemon --stop --quiet --oknodo --exec ${exec} 1>&2
25
        eend $? "Error stopping $daemon"
26
}
27
28
restart() {
29
   svc_stop
30
   svc_start
31
}
(-)mit-krb5.orig/files/mit-krb5kdc.initd (+31 lines)
Line 0 Link Here
1
#!/sbin/runscript
2
3
#---------------------------------------------------------------------------
4
# This script starts/stops the MIT Kerberos 5 KDC
5
#---------------------------------------------------------------------------
6
7
daemon="MIT Kerberos 5 KDC"	
8
exec="/usr/sbin/krb5kdc"
9
10
opts="start stop restart"
11
12
depend() {
13
	need net
14
}
15
16
start() {
17
	ebegin "Starting $daemon"
18
	start-stop-daemon --start --quiet --exec ${exec} 1>&2
19
	eend $? "Error starting $daemon"
20
}
21
22
stop() { 
23
        ebegin "Stopping $daemon"
24
        start-stop-daemon --stop --quiet --oknodo --exec ${exec} 1>&2
25
        eend $? "Error stopping $daemon"
26
}
27
28
restart() {
29
   svc_stop
30
   svc_start
31
}
(-)mit-krb5.orig/mit-krb5-1.2.7.ebuild (-13 / +20 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2003 Gentoo Technologies, Inc.
1
# Copyright 1999-2003 Gentoo Technologies, Inc.
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /home/cvsroot/gentoo-x86/app-crypt/mit-krb5/mit-krb5-1.2.7.ebuild,v 1.2 2003/03/31 08:27:40 aliz Exp $
3
# $Header: $
4
4
5
inherit eutils
5
inherit eutils
6
6
Lines 12-21 Link Here
12
        http://web.mit.edu/kerberos/www/advisories/2003-004-krb4_patchkit.tar.gz"
12
        http://web.mit.edu/kerberos/www/advisories/2003-004-krb4_patchkit.tar.gz"
13
DESCRIPTION="MIT Kerberos V"
13
DESCRIPTION="MIT Kerberos V"
14
HOMEPAGE="http://web.mit.edu/kerberos/www/"
14
HOMEPAGE="http://web.mit.edu/kerberos/www/"
15
IUSE="krb4"
15
IUSE="krb4 static"
16
SLOT="0"
16
SLOT="0"
17
LICENSE="as-is"
17
LICENSE="as-is"
18
KEYWORDS="x86"
18
KEYWORDS="x86 sparc ppc alpha"
19
PROVIDE="virtual/krb5"
19
PROVIDE="virtual/krb5"
20
DEPEND="virtual/glibc"
20
DEPEND="virtual/glibc"
21
21
Lines 35-41 Link Here
35
          | xargs -n1 perl -pi.orig -e '
35
          | xargs -n1 perl -pi.orig -e '
36
                $.==1 && s/^/#include <errno.h>\n/;
36
                $.==1 && s/^/#include <errno.h>\n/;
37
                s/extern\s+int\s+errno\s*\;//;'
37
                s/extern\s+int\s+errno\s*\;//;'
38
        eend 0
38
        eend $?
39
}
39
}
40
40
41
src_compile() {
41
src_compile() {
Lines 44-53 Link Here
44
	use krb4 && myconf="${myconf} --with-krb4 --enable-krb4" \
44
	use krb4 && myconf="${myconf} --with-krb4 --enable-krb4" \
45
		|| myconf="${myconf} --without-krb4 --disable-krb4"
45
		|| myconf="${myconf} --without-krb4 --disable-krb4"
46
46
47
	use static && myconf="${myconf} --disable-shared --enable-static" \
48
		|| myconf="${myconf} --enable-shared --disable-static"
49
47
	econf \
50
	econf \
48
		--mandir=/usr/share/man \
51
		--with-cc="${CC}" \
52
		--with-ccopts="${CFLAGS}" \
53
		--with-cppopts="${CXXFLAGS}" \
49
		--localstatedir=/etc \
54
		--localstatedir=/etc \
50
		--enable-shared \
51
		--host=${CHOST} \
55
		--host=${CHOST} \
52
		--prefix=/usr \
56
		--prefix=/usr \
53
		--enable-dns \
57
		--enable-dns \
Lines 58-65 Link Here
58
62
59
src_install () {
63
src_install () {
60
	make DESTDIR=${D} install || die
64
	make DESTDIR=${D} install || die
65
	
61
	cd ..
66
	cd ..
62
	dodoc README
67
	dodoc README
68
	dohtml doc/*.html
63
69
64
	# Begin client rename and install
70
	# Begin client rename and install
65
	for i in {telnetd,ftpd}
71
	for i in {telnetd,ftpd}
Lines 74-90 Link Here
74
	done
80
	done
75
										
81
										
76
	insinto /etc
82
	insinto /etc
77
	newins ${FILESDIR}/krb5.conf krb5.conf
83
		newins ${FILESDIR}/krb5.conf krb5.conf
78
	insinto /etc/krb5kdc
84
	insinto /etc/krb5kdc
79
	newins ${FILESDIR}/kdc.conf kdc.conf
85
		newins ${FILESDIR}/kdc.conf kdc.conf
80
	insinto /etc/conf.d
81
	newins ${FILESDIR}/krb5.confd krb5
82
	exeinto /etc/init.d
86
	exeinto /etc/init.d
83
	newexe ${FILESDIR}/krb5.initd krb5
87
		newexe ${FILESDIR}/mit-krb5kadmind.initd mit-krb5kadmind
88
		newexe ${FILESDIR}/mit-krb5kdc.initd mit-krb5kdc
84
}
89
}
85
90
86
pkg_postinst() {
91
pkg_postinst() {
87
	einfo "Configuration files are now under /etc."
92
	einfo "See /usr/share/doc/${MY_P}/html/admin.html for documentation."
88
	einfo "The client apps are now installed with the k prefix"
93
	echo ""
94
	einfo "The client apps are installed with the k prefix"
89
	einfo "(ie. kftp, kftpd, ktelnet, ktelnetd, etc...)"
95
	einfo "(ie. kftp, kftpd, ktelnet, ktelnetd, etc...)"
96
	echo ""
90
}
97
}

Return to bug 16449