A app-admin A app-admin/purge A app-admin/purge/files A app-admin/purge/files/purge-Makefile_fix.patch A app-admin/purge/files/digest-purge-20040201 A app-admin/purge/Manifest A app-admin/purge/purge-20040201.ebuild * Added purge (http://www.wa.apana.org.au/~dean/squidpurge/) for squid management
Lars Strojny

Lars Strojny commited on 2007-01-07 23:43:56
Zeige 4 geänderte Dateien mit 109 Einfügungen und 0 Löschungen.

... ...
@@ -0,0 +1,12 @@
1
+AUX purge-Makefile_fix.patch 1825 RMD160 aaa40262d79cea2d98b401ed4e8df864852514f8 SHA1 2c94f27d8f64fd9d670230621c9d359d335e7ddd SHA256 cac1558c2a0a23fdb0d3c6722b56f2a6087d6cc3e8355bd6d06f1cbb5f32392d
2
+MD5 8eb8de9fba23ac811aa309be7d545b11 files/purge-Makefile_fix.patch 1825
3
+RMD160 aaa40262d79cea2d98b401ed4e8df864852514f8 files/purge-Makefile_fix.patch 1825
4
+SHA256 cac1558c2a0a23fdb0d3c6722b56f2a6087d6cc3e8355bd6d06f1cbb5f32392d files/purge-Makefile_fix.patch 1825
5
+DIST purge-20040201-src.tar.gz 30572 RMD160 c98c146223d6322850e7203af2b074a40440184a SHA1 9347ead8f1444c7c8d1828e0c8ff8bd0ca5e0891 SHA256 d2dbf16dc7eb314a8d51ae67ca49d3901dc689cecf531029e102fde07faa0d06
6
+EBUILD purge-20040201.ebuild 568 RMD160 7724646ea3970ba629552342274dfb3c1b50817f SHA1 e805e8571f42a57fa2bfc7ec771888080330d7fc SHA256 1a18cedbb5af7caf62c40e63829df891d899f80db476a2ec1653ba790b9e9fec
7
+MD5 df445ebb7951b362d12da4050e8e57fb purge-20040201.ebuild 568
8
+RMD160 7724646ea3970ba629552342274dfb3c1b50817f purge-20040201.ebuild 568
9
+SHA256 1a18cedbb5af7caf62c40e63829df891d899f80db476a2ec1653ba790b9e9fec purge-20040201.ebuild 568
10
+MD5 0d1a1fbbf54c7d5671ce0a94e4fb263c files/digest-purge-20040201 253
11
+RMD160 c6a314c5cce679088051bef0b801f902d23a294a files/digest-purge-20040201 253
12
+SHA256 dbbae981da98a19953ee11993cf6389d3752408c2470b615b0d08f23f4b51f1e files/digest-purge-20040201 253
... ...
@@ -0,0 +1,3 @@
1
+MD5 60385256da26311036ebcc4802b0dac5 purge-20040201-src.tar.gz 30572
2
+RMD160 c98c146223d6322850e7203af2b074a40440184a purge-20040201-src.tar.gz 30572
3
+SHA256 d2dbf16dc7eb314a8d51ae67ca49d3901dc689cecf531029e102fde07faa0d06 purge-20040201-src.tar.gz 30572
... ...
@@ -0,0 +1,61 @@
1
+diff -ru purge-orig/Makefile purge/Makefile
2
+--- purge-orig/Makefile	2007-01-07 23:29:52.000000000 +0100
3
++++ purge/Makefile	2007-01-07 23:35:42.000000000 +0100
4
+@@ -26,7 +26,7 @@
5
+ MAJOR   = $(firstword $(subst ., ,$(VERSION)))
6
+ MINOR   = $(strip $(word 2,$(subst ., ,$(VERSION))))
7
+ LOADLIBES =
8
+-SOCKLEN	= int # default except for glibc2?
9
++SOCKLEN	= socklen_t # default except for glibc2?
10
+ 
11
+ # optimization levels - Do *not* use levels above -O1 with g++,
12
+ # if -fprofile-arcs or -ftest-coverage is selected! Set to different
13
+@@ -34,7 +34,7 @@
14
+ #
15
+ # - OPT_NORM for normal level optimization, O2 is a good choice.
16
+ #
17
+-OPT_NORM = -O2
18
++OPT_NORM = 
19
+ 
20
+ # electric fence library, for test purposes only (helps w/ memory leaks)
21
+ # (developers only)
22
+@@ -58,7 +58,7 @@
23
+ #
24
+ ## g++ settings for Solaris on Ultra Sparcs (comment out all of above):
25
+ CXXFLAGS += -DSOLARIS # -ggdb
26
+-OPT_NORM = -O2 # -mcpu=supersparc
27
++OPT_NORM = 
28
+ LD	= $(CC)
29
+ ##
30
+ #EXTRALIB += -lnsl -lsocket -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic
31
+@@ -85,7 +85,7 @@
32
+ CC	= cc -n32 -mips3 -r4000
33
+ CXXFLAGS = -woff 1174 -LANG:exceptions=off -DHAS_BOOL -DHAS_PSIGNAL
34
+ LD	= $(CXX)
35
+-OPT_NORM = -O3 -IPA -LNO:opt=1
36
++OPT_NORM = 
37
+ # for g++
38
+ #CXXFLAGS += -mips3 -mcpu=r4000 
39
+ endif
40
+@@ -99,7 +99,7 @@
41
+ CC	= xlc
42
+ CXXFLAGS = -qtune=pwr # -qdbxextra -g
43
+ #CXX	= g++ -ffor-scope -DHAS_BOOL -UHAS_PSIGNAL
44
+-SOCKLEN	= size_t
45
++SOCKLEN	= socklen_t
46
+ LD	= $(CXX)
47
+ endif
48
+ 
49
+@@ -108,10 +108,10 @@
50
+ LIBCVER = $(shell /bin/ls /lib/libc.so.? | \
51
+ 	awk -F'.' '{ if (m<$$3) m=$$3;} END { print m} ')
52
+ ifeq (6,${LIBCVER})
53
+-SOCKLEN	= size_t
54
++SOCKLEN	= socklen_t
55
+ endif
56
+ CXXFLAGS += -DHAS_PSIGNAL -DLIBCVERSION=$(LIBCVER) -pipe # -Wall -pedantic
57
+-OPT_NORM = -march=pentium -O2
58
++OPT_NORM = 
59
+ # if your g++ balks (e.g. SuSE still uses 2.7.2.3)
60
+ #CXXFLAGS += -DHAS_PSIGNAL -DLIBCVERSION=$(LIBCVER) -m486
61
+ LD	= $(CC)
... ...
@@ -0,0 +1,33 @@
1
+# Copyright 1999-2007 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: $
4
+
5
+inherit eutils
6
+
7
+DESCRIPTION="A tool to purge squid cache"
8
+HOMEPAGE="http://www.wa.apana.org.au/~dean/squidpurge/"
9
+SRC_URI="http://www.wa.apana.org.au/~dean/sources/${PN}-20040201-src.tar.gz"
10
+
11
+LICENSE=""
12
+SLOT="0"
13
+KEYWORDS="~amd64"
14
+IUSE=""
15
+
16
+DEPEND=""
17
+RDEPEND=""
18
+
19
+S=${WORKDIR}/${PN}
20
+
21
+src_unpack() {
22
+	unpack ${A} || die
23
+	epatch ${FILESDIR}/${PN}-Makefile_fix.patch
24
+}
25
+
26
+src_compile() {
27
+	emake || die
28
+}
29
+
30
+src_install() {
31
+	insinto /usr/sbin
32
+	dobin purge
33
+}
0 34