1 |
chainsaw 08/07/04 11:43:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: snips-1.2-r2.ebuild |
5 |
Removed: snips-1.2-r1.ebuild |
6 |
Log: |
7 |
Add a snips user & group to the system and set permissions appropriately. Install 3 missing files. |
8 |
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc8-00204-gc461a97-dirty x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.3 net-analyzer/snips/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/snips/ChangeLog?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/snips/ChangeLog?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/snips/ChangeLog?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/snips/ChangeLog,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -u -r1.2 -r1.3 |
23 |
--- ChangeLog 30 Jun 2008 12:18:52 -0000 1.2 |
24 |
+++ ChangeLog 4 Jul 2008 11:43:40 -0000 1.3 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for net-analyzer/snips |
27 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snips/ChangeLog,v 1.2 2008/06/30 12:18:52 chainsaw Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snips/ChangeLog,v 1.3 2008/07/04 11:43:40 chainsaw Exp $ |
30 |
+ |
31 |
+*snips-1.2-r2 (04 Jul 2008) |
32 |
+ |
33 |
+ 04 Jul 2008; <chainsaw@g.o> +files/snips-1.2-install-missing.patch, |
34 |
+ -files/snips-1.2-r1-precache-config, +files/snips-1.2-r2-precache-config, |
35 |
+ -snips-1.2-r1.ebuild, +snips-1.2-r2.ebuild: |
36 |
+ Add a snips user & group to the system and set permissions appropriately. |
37 |
+ Install 3 missing files. |
38 |
|
39 |
*snips-1.2-r1 (30 Jun 2008) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 net-analyzer/snips/snips-1.2-r2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/snips/snips-1.2-r2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/snips/snips-1.2-r2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: snips-1.2-r2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2008 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snips/snips-1.2-r2.ebuild,v 1.1 2008/07/04 11:43:40 chainsaw Exp $ |
54 |
|
55 |
inherit eutils toolchain-funcs |
56 |
|
57 |
DESCRIPTION="System & Network Integrated Polling Software" |
58 |
HOMEPAGE="http://www.netplex-tech.com/snips/" |
59 |
SRC_URI="http://www.netplex-tech.com/software/downloads/${PN}/${P}.tar.gz" |
60 |
LICENSE="as-is" |
61 |
SLOT="0" |
62 |
KEYWORDS="~amd64" |
63 |
IUSE="" |
64 |
|
65 |
RDEPEND="dev-lang/perl |
66 |
mail-client/mailx |
67 |
net-analyzer/rrdtool |
68 |
>=net-misc/iputils-20071127-r2 |
69 |
sys-libs/gdbm |
70 |
sys-libs/ncurses" |
71 |
|
72 |
src_unpack() { |
73 |
unpack ${A} |
74 |
cd "${S}" |
75 |
# Gentoo-specific non-interactive configure override |
76 |
cp "${FILESDIR}/${PF}-precache-config" "${S}/Config.cache" \ |
77 |
|| die "Unable to precache configure script answers" |
78 |
echo "CFLAGS=\"${CFLAGS} -fPIC\"" >> "${S}/Config.cache" |
79 |
echo "CC=\"$(tc-getCC)\"" >> "${S}/Config.cache" |
80 |
echo "SRCDIR=\"${S}\"" >> "${S}/Config.cache" |
81 |
epatch "${FILESDIR}/${P}-non-interactive.patch" |
82 |
# Applied to upstream CVS |
83 |
epatch "${FILESDIR}/${P}-install-missing.patch" |
84 |
epatch "${FILESDIR}/${P}-implicit-declarations.patch" |
85 |
epatch "${FILESDIR}/${P}-conflicting-types.patch" |
86 |
epatch "${FILESDIR}/${P}-code-ordering.patch" |
87 |
epatch "${FILESDIR}/${P}-destdir-awareness.patch" |
88 |
} |
89 |
|
90 |
src_compile() { |
91 |
# Looks horrid due to missing linebreaks, suppress output |
92 |
ebegin "Running configure script (with precached settings)" |
93 |
./Configure &> /dev/null || die "Unable to configure" |
94 |
eend $? |
95 |
emake || die "emake failed" |
96 |
} |
97 |
|
98 |
src_install() { |
99 |
emake DESTDIR="${D}" install || die "emake install failed" |
100 |
} |
101 |
|
102 |
pkg_preinst() { |
103 |
enewgroup snips |
104 |
enewuser snips -1 -1 /usr/snips snips |
105 |
} |
106 |
|
107 |
pkg_postinst() { |
108 |
ebegin "Fixing permissions" |
109 |
chown -R snips:snips "${ROOT}"usr/snips |
110 |
for x in data logs msgs rrddata run web device-help etc; do |
111 |
chmod -R g+w "${ROOT}usr/snips/${x}" \ |
112 |
|| die "Unable to chmod ${x}" |
113 |
done |
114 |
chown root:snips "${ROOT}usr/snips/bin/multiping" || die "chown root failed" |
115 |
chown root:snips "${ROOT}usr/snips/bin/etherload" || die "chown root failed" |
116 |
chown root:snips "${ROOT}usr/snips/bin/trapmon" || die "chown root failed" |
117 |
chmod u+s "${ROOT}usr/snips/bin/multiping" || die "SetUID root failed" |
118 |
chmod u+s "${ROOT}usr/snips/bin/etherload" || die "SetUID root failed" |
119 |
chmod u+s "${ROOT}usr/snips/bin/trapmon" || die "SetUID root failed" |
120 |
eend $? |
121 |
} |
122 |
|
123 |
|
124 |
|
125 |
-- |
126 |
gentoo-commits@l.g.o mailing list |