Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/usermin: usermin-1.570.ebuild ChangeLog
Date: Thu, 21 Nov 2013 07:50:16
Message-Id: 20131121075008.591352004B@flycatcher.gentoo.org
1 patrick 13/11/21 07:50:08
2
3 Modified: ChangeLog
4 Added: usermin-1.570.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.158 app-admin/usermin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/usermin/ChangeLog?rev=1.158&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/usermin/ChangeLog?rev=1.158&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/usermin/ChangeLog?r1=1.157&r2=1.158
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v
20 retrieving revision 1.157
21 retrieving revision 1.158
22 diff -u -r1.157 -r1.158
23 --- ChangeLog 10 May 2013 06:13:37 -0000 1.157
24 +++ ChangeLog 21 Nov 2013 07:50:08 -0000 1.158
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-admin/usermin
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v 1.157 2013/05/10 06:13:37 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v 1.158 2013/11/21 07:50:08 patrick Exp $
30 +
31 +*usermin-1.570 (21 Nov 2013)
32 +
33 + 21 Nov 2013; Patrick Lauer <patrick@g.o> +usermin-1.570.ebuild:
34 + Bump
35
36 10 May 2013; Patrick Lauer <patrick@g.o> usermin-1.430.ebuild:
37 Fix inherit
38
39
40
41 1.1 app-admin/usermin/usermin-1.570.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/usermin/usermin-1.570.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/usermin/usermin-1.570.ebuild?rev=1.1&content-type=text/plain
45
46 Index: usermin-1.570.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/usermin-1.570.ebuild,v 1.1 2013/11/21 07:50:08 patrick Exp $
51
52 EAPI="5"
53
54 inherit eutils pam
55
56 DESCRIPTION="A web-based user administration interface."
57 HOMEPAGE="http://www.webmin.com/index6.html"
58 SRC_URI="mirror://sourceforge/webadmin/${P}.tar.gz"
59
60 LICENSE="BSD GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
63 IUSE="ipv6 ldap pam ssl syslog zlib"
64
65 DEPEND="dev-lang/perl"
66
67 RDEPEND="${DEPEND}
68 || ( virtual/perl-Digest-MD5 dev-perl/MD5 )
69 dev-perl/Digest-SHA1
70 dev-perl/Net-HTTP
71 sys-process/lsof
72 virtual/perl-Time-HiRes
73 virtual/perl-Time-Local
74 ipv6? ( dev-perl/Socket6 )
75 ldap? ( dev-perl/perl-ldap )
76 pam? ( dev-perl/Authen-PAM )
77 ssl? ( dev-perl/Net-SSLeay )
78 syslog? ( virtual/perl-Sys-Syslog )
79 zlib? ( virtual/perl-Compress-Raw-Zlib )"
80
81 pkg_setup() {
82 enewuser ${PN} -1 /bin/bash
83 }
84
85 src_prepare() {
86 # Point to the correct mysql location
87 sed -i -e "s:/usr/local/mysql:/usr:g" mysql/config
88
89 # Change /usr/local/bin/perl references
90 find . -type f | xargs sed -i -e 's:^#!.*/usr/local/bin/perl:#!/usr/bin/perl:'
91
92 # Fixup the config files to use their real locations
93 sed -i -e "s:^pidfile=.*$:pidfile=/var/run/${PN}.pid:" etc/${PN}/miniserv.conf
94 find etc/${PN} -type f | xargs sed -i -e "s:${D}:/:g"
95
96 epatch "${FILESDIR}"/${PN}-1.080-safestop.patch
97 epatch "${FILESDIR}"/${PN}-1.150-setup-nocheck.patch
98 }
99
100 src_install() {
101 dodir /usr/libexec/${PN}
102 cp -pR * "${D}"/usr/libexec/${PN}
103
104 newinitd "${FILESDIR}"/${PN}-1.540-r1.init ${PN}
105 newpamd "${FILESDIR}"/${PN}.pam-include.1 ${PN}
106
107 dodir /etc/${PN}
108 dodir /var/log/${PN}
109
110 # Fix ownership
111 chown -R ${PN} "${ED}"
112
113 config_dir=${D}/etc/${PN}
114 var_dir=${D}/var/log/${PN}
115 perl=/usr/bin/perl
116 autoos=1
117 port=20000
118 login=root
119 crypt="XXX"
120 host=`hostname`
121 use ssl && ssl=1 || ssl=0
122 atboot=0
123 nostart=1
124 nochown=1
125 autothird=1
126 nouninstall=1
127 noperlpath=1
128 tempdir="${T}"
129 export config_dir var_dir perl autoos port login crypt host ssl atboot nostart nochown autothird nouninstall noperlpath tempdir
130 "${D}"/usr/libexec/${PN}/setup.sh > "${T}"/${PN}-setup.out 2>&1 || die "Failed to create initial ${PN} configuration."
131
132 # Cleanup from the config script
133 rm -rf "${D}"/var/log/${PN}
134 keepdir /var/log/${PN}
135 }
136
137 pkg_postinst() {
138 elog "To make ${PN} start at boot time, run: 'rc-update add ${PN} default'."
139 elog "Point your web browser to https://localhost:20000 to use ${PN}."
140 }