1 |
commit: 2df69c5b83d4a43a345efcfc7c30636dc71e7588 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 23:53:55 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 23:53:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2df69c5b |
7 |
|
8 |
net-nds/389-admin: remove old ebuild |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
net-nds/389-admin/389-admin-1.1.31.ebuild | 171 ------------------------------ |
13 |
1 file changed, 171 deletions(-) |
14 |
|
15 |
diff --git a/net-nds/389-admin/389-admin-1.1.31.ebuild b/net-nds/389-admin/389-admin-1.1.31.ebuild |
16 |
deleted file mode 100644 |
17 |
index 4716cae..0000000 |
18 |
--- a/net-nds/389-admin/389-admin-1.1.31.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,171 +0,0 @@ |
21 |
-# Copyright 1999-2014 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=5 |
26 |
- |
27 |
-WANT_AUTOMAKE="1.9" |
28 |
- |
29 |
-MY_PV=${PV/_rc/.rc} |
30 |
-MY_PV=${MY_PV/_a/.a} |
31 |
- |
32 |
-inherit eutils multilib autotools depend.apache |
33 |
- |
34 |
-DESCRIPTION="389 Directory Server (admin)" |
35 |
-HOMEPAGE="http://port389.org/" |
36 |
-SRC_URI="http://directory.fedoraproject.org/sources/${PN}-${MY_PV}.tar.bz2" |
37 |
- |
38 |
-LICENSE="GPL-2 Apache-2.0" |
39 |
-SLOT="0" |
40 |
-KEYWORDS="~amd64 ~x86" |
41 |
-IUSE="debug ipv6 selinux" |
42 |
- |
43 |
-# TODO snmp agent init script |
44 |
- |
45 |
-COMMON_DEPEND=">=app-admin/389-admin-console-1.1.0 |
46 |
- >=app-admin/389-ds-console-1.1.0 |
47 |
- app-misc/mime-types |
48 |
- dev-libs/389-adminutil |
49 |
- dev-libs/cyrus-sasl |
50 |
- dev-libs/icu:= |
51 |
- dev-libs/nss[utils] |
52 |
- || ( <=dev-libs/nspr-4.8.3-r3[ipv6?] >=dev-libs/nspr-4.8.4 ) |
53 |
- dev-libs/svrcore |
54 |
- net-analyzer/net-snmp[ipv6?] |
55 |
- net-nds/openldap |
56 |
- selinux? ( |
57 |
- sys-apps/checkpolicy |
58 |
- sys-apps/policycoreutils |
59 |
- ) |
60 |
- >=sys-libs/db-4.2.52 |
61 |
- sys-libs/pam |
62 |
- sys-apps/tcp-wrappers[ipv6?] |
63 |
- www-apache/mod_nss |
64 |
- www-servers/apache:2[apache2_modules_actions,apache2_modules_alias,apache2_modules_auth_basic,apache2_modules_authz_default,apache2_modules_cgi,apache2_modules_mime_magic,apache2_modules_rewrite,apache2_modules_setenvif,suexec,threads]" |
65 |
-RDEPEND=" |
66 |
- ${COMMON_DEPEND} |
67 |
- www-client/lynx |
68 |
- selinux? ( sec-policy/selinux-base-policy ) |
69 |
-" |
70 |
-DEPEND="sys-apps/sed ${COMMON_DEPEND}" |
71 |
- |
72 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
73 |
- |
74 |
-need_apache2 |
75 |
- |
76 |
-src_prepare() { |
77 |
- # as per 389 documentation, when 64bit, export USE_64 |
78 |
- use amd64 && export USE_64=1 |
79 |
- |
80 |
- epatch "${FILESDIR}/1.1.11_rc1/0001-gentoo-apache-names.patch" |
81 |
- epatch "${FILESDIR}/1.1.11_rc1/0003-find-mod_nss.m4.patch" |
82 |
- epatch "${FILESDIR}/1.1.11_rc1/0004-rpath-fix.configure.ac.patch" |
83 |
- # Configuration fixes |
84 |
- epatch "${FILESDIR}/${PN}-cfgstuff-1.patch" |
85 |
- |
86 |
- sed -e "s!SUBDIRS!# SUBDIRS!g" -i Makefile.am || die "sed failed" |
87 |
- # Setup default user/group, in this case it's dirsrv |
88 |
- sed -e "s!nobody!dirsrv!g" -i configure.ac || die "sed failed" |
89 |
- |
90 |
- eautoreconf |
91 |
-} |
92 |
- |
93 |
-src_configure() { |
94 |
- # stub autoconf triplet :( |
95 |
- local myconf="" |
96 |
- use debug && myconf="--enable-debug" |
97 |
- use selinux && myconf="${myconf} --with-selinux" |
98 |
- |
99 |
- econf \ |
100 |
- --enable-threading \ |
101 |
- --disable-rpath \ |
102 |
- --with-adminutil=/usr \ |
103 |
- --with-apr-config \ |
104 |
- --with-apxs=${APXS} \ |
105 |
- --with-fhs \ |
106 |
- --with-httpd=${APACHE_BIN} \ |
107 |
- --with-openldap \ |
108 |
- ${myconf} || die "econf failed" |
109 |
-} |
110 |
- |
111 |
-src_install () { |
112 |
- |
113 |
- emake DESTDIR="${D}" install || die "emake failed" |
114 |
- keepdir /var/log/dirsrv/admin-serv |
115 |
- |
116 |
- # remove redhat style init script. |
117 |
- rm -rf "${D}"/etc/rc.d |
118 |
- rm -rf "${D}"/etc/default |
119 |
- |
120 |
- # install gentoo style init script. |
121 |
- newinitd "${FILESDIR}"/${PN}.initd ${PN} |
122 |
- newconfd "${FILESDIR}"/${PN}.confd ${PN} |
123 |
- |
124 |
- # remove redhat style wrapper scripts |
125 |
- # and install gentoo scripts. |
126 |
- rm -rf "${D}"/usr/sbin/*-ds-admin |
127 |
- dosbin "${FILESDIR}"/*-ds-admin || die "cannot install gentoo start/stop scripts" |
128 |
- |
129 |
- # In this version build systems for modules is delete :( |
130 |
- # manually install modules, not using apache-modules eclass |
131 |
- # because use bindled library |
132 |
- |
133 |
- # install mod_admserv |
134 |
- exeinto "${APACHE_MODULESDIR}" |
135 |
- doexe "${S}/.libs"/mod_admserv.so || die "internal ebuild error: mod_admserv not found" |
136 |
- |
137 |
- insinto "${APACHE_MODULES_CONFDIR}" |
138 |
- newins "${FILESDIR}/1.1.11_rc1"/48_mod_admserv.conf 48_mod_admserv \ |
139 |
- || die "internal ebuild error: 48_mod_admserv.conf not found" |
140 |
- |
141 |
- # install mod_restard |
142 |
- exeinto "${APACHE_MODULESDIR}" |
143 |
- doexe "${S}/.libs"/mod_restartd.so || die "internal ebuild error: mod_restartd not found" |
144 |
- |
145 |
- insinto "${APACHE_MODULES_CONFDIR}" |
146 |
- newins "${FILESDIR}/1.1.11_rc1"/48_mod_restartd.conf 48_mod_restartd \ |
147 |
- || die "internal ebuild error: 48_mod_restard.conf not found" |
148 |
- |
149 |
- if use selinux; then |
150 |
- local POLICY_TYPES="targeted" |
151 |
- cd "${S}"/selinux || die |
152 |
- cp /usr/share/selinux/${POLICY_TYPES}/include/Makefile . || die |
153 |
- make || die "selinux policy compile failed" |
154 |
- insinto /usr/share/selinux/${POLICY_TYPES} |
155 |
- doins -r "${S}/selinux/"*.pp |
156 |
- fi |
157 |
- |
158 |
-} |
159 |
- |
160 |
-pkg_postinst() { |
161 |
- |
162 |
- # show setup information |
163 |
- elog "Once you configured www-servers/apache as written above," |
164 |
- elog "you need to run (as root): /usr/sbin/setup-ds-admin.pl" |
165 |
- elog |
166 |
- |
167 |
- # show security and sysctl info |
168 |
- elog "It is recommended to setup net.ipv4.tcp_keep_alive_time" |
169 |
- elog "in /etc/sysctl.conf (or via sysctl -w && sysctl -p) to a reasonable" |
170 |
- elog "value (in milliseconds) to avoid temporary server congestions" |
171 |
- elog "from lost client connections" |
172 |
- elog |
173 |
- |
174 |
- # /etc/security/limits.conf settings |
175 |
- elog "It is also recommended to fine tune the maximum open files" |
176 |
- elog "settings inside /etc/security/limits.conf:" |
177 |
- elog "* soft nofile 2048" |
178 |
- elog "* hard nofile 4096" |
179 |
- elog |
180 |
- |
181 |
- elog "To start 389 Directory Server Administration Interface at boot" |
182 |
- elog "please add 389-admin service to the default runlevel:" |
183 |
- elog |
184 |
- elog " rc-update add 389-admin default" |
185 |
- elog |
186 |
- |
187 |
- elog "for 389 Directory Server Admin interface to work, you need" |
188 |
- elog "to setup a FQDN hostname and use it while running /usr/sbin/setup-ds-admin.pl" |
189 |
- elog |
190 |
- |
191 |
-} |