summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Vroon <chainsaw@gentoo.org>2008-06-27 15:25:01 +0000
committerTony Vroon <chainsaw@gentoo.org>2008-06-27 15:25:01 +0000
commitf40e980c7569cd560c702e0138caf74533b33c0d (patch)
treeb527daa9a6ce9dbf272efc74530ad2310dcc6075 /net-analyzer/snips
parentstable amd64, bug 229167 (diff)
downloadgentoo-2-f40e980c7569cd560c702e0138caf74533b33c0d.tar.gz
gentoo-2-f40e980c7569cd560c702e0138caf74533b33c0d.tar.bz2
gentoo-2-f40e980c7569cd560c702e0138caf74533b33c0d.zip
Initial commit, ebuild by me.
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc7-00051-g62786b9-dirty x86_64)
Diffstat (limited to 'net-analyzer/snips')
-rw-r--r--net-analyzer/snips/ChangeLog13
-rw-r--r--net-analyzer/snips/Manifest9
-rw-r--r--net-analyzer/snips/files/snips-1.2-code-ordering.patch25
-rw-r--r--net-analyzer/snips/files/snips-1.2-conflicting-types.patch52
-rw-r--r--net-analyzer/snips/files/snips-1.2-implicit-declarations.patch130
-rw-r--r--net-analyzer/snips/files/snips-1.2-non-interactive.patch93
-rw-r--r--net-analyzer/snips/files/snips-1.2-precache-config24
-rw-r--r--net-analyzer/snips/metadata.xml8
-rw-r--r--net-analyzer/snips/snips-1.2.ebuild66
9 files changed, 420 insertions, 0 deletions
diff --git a/net-analyzer/snips/ChangeLog b/net-analyzer/snips/ChangeLog
new file mode 100644
index 000000000000..fe24ab2df4ff
--- /dev/null
+++ b/net-analyzer/snips/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for net-analyzer/snips
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snips/ChangeLog,v 1.1 2008/06/27 15:25:00 chainsaw Exp $
+
+*snips-1.2 (27 Jun 2008)
+
+ 27 Jun 2008; <chainsaw@gentoo.org> +files/snips-1.2-code-ordering.patch,
+ +files/snips-1.2-conflicting-types.patch,
+ +files/snips-1.2-implicit-declarations.patch,
+ +files/snips-1.2-non-interactive.patch, +files/snips-1.2-precache-config,
+ +snips-1.2.ebuild:
+ Initial commit, ebuild by me.
+
diff --git a/net-analyzer/snips/Manifest b/net-analyzer/snips/Manifest
new file mode 100644
index 000000000000..979e2cb680e2
--- /dev/null
+++ b/net-analyzer/snips/Manifest
@@ -0,0 +1,9 @@
+AUX snips-1.2-code-ordering.patch 712 RMD160 61d0f7a70b4b95abb71d6f9a4998aa4f398b2db6 SHA1 23002357d88afdd5854a97d1a7f75b46d5b638bd SHA256 b25512ea95680f3df63553568a94197b0080c8c7bf2296782668739761bd5ef5
+AUX snips-1.2-conflicting-types.patch 1618 RMD160 ed0a6b38e021126fd8db6f3e248c7942289b94bb SHA1 3ebfef705a36b3866f396ca4f173890c7998c7cc SHA256 71912412ce76cf78f1214534618a4570dfa13779c4d8b7baf4f645c7de8ab4d5
+AUX snips-1.2-implicit-declarations.patch 3913 RMD160 35525b2ff863176c91be5d839a0e33f941099aa4 SHA1 74b61f727e39535a7260fa7c439b84e2f15149ff SHA256 5eb0e41b82cd1ef943b488e8e545c99e880bda07e238d920d987211518ae8dba
+AUX snips-1.2-non-interactive.patch 3462 RMD160 82571f9b80e9a9c4297ce0b1cf2c9928128e29e6 SHA1 f4f58465e9c8d0ceedbb811609c643063c92463b SHA256 c06d66f13e95f4d4e57bb293f06fa2ff7d96631bf209d2978a97567419aec798
+AUX snips-1.2-precache-config 524 RMD160 61c5630bd029a2aef8161b0ab2adb40f4374b36c SHA1 4df5acfbb6392ec51704733dc2e612c074a0136f SHA256 abba526d321a7eadd2eb8a4064d5193bae5e0ffb3bc7a80c1fdf3a6648163f7b
+DIST snips-1.2.tar.gz 1382731 RMD160 4ee9906558387545a0a02f8a6df7d3e119b1fc2e SHA1 3534c77a4b33aab3c9b49a8ad229d9263bb719a4 SHA256 2ca44a51251b569e9429ae404caccb3721a9697532e95c9ff0e6db9ef8e3cd28
+EBUILD snips-1.2.ebuild 1911 RMD160 aecb918989a4e715f22d9d1721de13694ea81071 SHA1 da687c4ee7f8710ada8552fb0ea8001a316df6fc SHA256 1fe0c149cccf2f38a3101d9b8e6317825009c04a96285282bbab19d982434e80
+MISC ChangeLog 442 RMD160 1cd02af3c4ca33dcc8e79fed271c85f1046e6bc0 SHA1 66322e80826a8a069643122cfc74627cb0e34fe5 SHA256 11aabdd6372bb4f2ba49223aa96279641d2d17d15f091d1cf1cfb1e09f21973a
+MISC metadata.xml 229 RMD160 1addfe2dccbb5a6fb878fc690c2d3648882cbccc SHA1 18b53e1505d808f4418966964033347396b7652d SHA256 beb2126c45a8a8c781defad3afaae8986b5716c19c9d92489ac4b6e4a660e821
diff --git a/net-analyzer/snips/files/snips-1.2-code-ordering.patch b/net-analyzer/snips/files/snips-1.2-code-ordering.patch
new file mode 100644
index 000000000000..13b31dc3c0f7
--- /dev/null
+++ b/net-analyzer/snips/files/snips-1.2-code-ordering.patch
@@ -0,0 +1,25 @@
+diff -uNr snips-1.2.ORIG/ntpmon/main.c snips-1.2/ntpmon/main.c
+--- snips-1.2.ORIG/ntpmon/main.c 2008-06-27 13:08:34.000000000 +0100
++++ snips-1.2/ntpmon/main.c 2008-06-27 13:08:57.000000000 +0100
+@@ -42,10 +42,6 @@
+ #include "event_utils.h"
+ #undef _MAIN_
+
+-/* function prototypes */
+-void set_functions();
+-void free_device_list(struct device_info **pslist);
+-
+ /* We keep a linked list of all the devices that we poll and store the
+ * various thresholds in this linked list.
+ */
+@@ -55,6 +51,10 @@
+ struct device_info *next;
+ } *device_info_list = NULL;
+
++/* function prototypes */
++void set_functions();
++void free_device_list(struct device_info **pslist);
++
+ int main(ac, av)
+ int ac;
+ char **av;
diff --git a/net-analyzer/snips/files/snips-1.2-conflicting-types.patch b/net-analyzer/snips/files/snips-1.2-conflicting-types.patch
new file mode 100644
index 000000000000..500faba89a60
--- /dev/null
+++ b/net-analyzer/snips/files/snips-1.2-conflicting-types.patch
@@ -0,0 +1,52 @@
+diff -ur snips-1.2.ORIG/pingmon/main.c snips-1.2/pingmon/main.c
+--- snips-1.2.ORIG/pingmon/main.c 2008-06-26 17:45:49.000000000 +0100
++++ snips-1.2/pingmon/main.c 2008-06-26 17:50:25.000000000 +0100
+@@ -517,7 +517,8 @@
+ */
+ void set_functions()
+ {
+- int help(), readconfig(), poll_devices();
++ int readconfig(), poll_devices();
++ void help();
+
+ set_help_function(help);
+ set_readconfig_function(readconfig);
+diff -ur snips-1.2.ORIG/portmon/main.c snips-1.2/portmon/main.c
+--- snips-1.2.ORIG/portmon/main.c 2008-06-26 17:45:49.000000000 +0100
++++ snips-1.2/portmon/main.c 2008-06-26 17:50:39.000000000 +0100
+@@ -476,7 +476,8 @@
+ */
+ void set_functions()
+ {
+- int help(), readconfig(), poll_devices();
++ int readconfig(), poll_devices();
++ void help();
+
+ set_help_function(help);
+ set_readconfig_function(readconfig);
+diff -ur snips-1.2.ORIG/radiusmon/main.c snips-1.2/radiusmon/main.c
+--- snips-1.2.ORIG/radiusmon/main.c 2008-06-26 17:45:49.000000000 +0100
++++ snips-1.2/radiusmon/main.c 2008-06-26 17:51:05.000000000 +0100
+@@ -261,7 +261,8 @@
+
+ void set_functions()
+ {
+- int help(), readconfig();
++ int readconfig();
++ void help();
+ u_long dotest();
+
+ set_help_function(help);
+diff -uNr snips-1.2.ORIG/ntpmon/main.c snips-1.2/ntpmon/main.c
+--- snips-1.2.ORIG/ntpmon/main.c 2008-06-27 13:12:11.000000000 +0100
++++ snips-1.2/ntpmon/main.c 2008-06-27 13:12:29.000000000 +0100
+@@ -291,7 +291,8 @@
+ */
+ void set_functions()
+ {
+- int help(), readconfig(), poll_devices();
++ int readconfig(), poll_devices();
++ void help();
+
+ set_help_function(help);
+ set_readconfig_function(readconfig);
diff --git a/net-analyzer/snips/files/snips-1.2-implicit-declarations.patch b/net-analyzer/snips/files/snips-1.2-implicit-declarations.patch
new file mode 100644
index 000000000000..6e3880ca58bf
--- /dev/null
+++ b/net-analyzer/snips/files/snips-1.2-implicit-declarations.patch
@@ -0,0 +1,130 @@
+--- snips-1.2/cmu-snmp/snmp/asn1.c.orig 2008-06-26 17:09:24.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/asn1.c 2008-06-26 17:09:47.000000000 +0100
+@@ -36,6 +36,7 @@
+ #endif /* HAVE_CONFIG_H */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/types.h>
+ #ifdef WIN32
+ #include <memory.h>
+--- snips-1.2/cmu-snmp/snmp/snmp_api.c.orig 2008-06-26 17:11:36.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/snmp_api.c 2008-06-26 17:11:44.000000000 +0100
+@@ -27,6 +27,7 @@
+ #endif /* HAVE_CONFIG_H */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include <ctype.h>
+ #include <errno.h>
+--- snips-1.2/cmu-snmp/snmp/mib.c.orig 2008-06-26 17:12:42.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/mib.c 2008-06-26 17:12:54.000000000 +0100
+@@ -24,6 +24,7 @@
+ #endif /* HAVE_CONFIG_H */
+
+ #include <stdio.h>
++#include <string.h>
+
+ #ifdef HAVE_STDLIB_H
+ #include <stdlib.h>
+--- snips-1.2/cmu-snmp/snmp/snmp_pdu.c.orig 2008-06-26 17:10:12.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/snmp_pdu.c 2008-06-26 17:10:22.000000000 +0100
+@@ -38,6 +38,7 @@
+ #endif /* HAVE_CONFIG_H */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <errno.h>
+ #include <sys/types.h>
+
+--- snips-1.2/cmu-snmp/snmp/snmp_vars.c.orig 2008-06-26 17:10:44.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/snmp_vars.c 2008-06-26 17:10:52.000000000 +0100
+@@ -36,6 +36,7 @@
+ #endif /* HAVE_CONFIG_H */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <errno.h>
+ #include <sys/types.h>
+
+--- snips-1.2/cmu-snmp/snmp/new-parse.c.orig 2008-06-26 17:13:44.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/new-parse.c 2008-06-26 17:13:50.000000000 +0100
+@@ -30,6 +30,7 @@
+ #endif /* HAVE_CONFIG_H */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/types.h>
+
+ #ifdef HAVE_STRINGS_H
+--- snips-1.2/cmu-snmp/snmp/snmp_api_util.c.orig 2008-06-26 17:14:38.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/snmp_api_util.c 2008-06-26 17:14:46.000000000 +0100
+@@ -27,6 +27,7 @@
+ #endif /* HAVE_CONFIG_H */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/types.h>
+
+ #ifdef WIN32
+--- snips-1.2/cmu-snmp/snmp/parse.c.orig 2008-06-26 17:13:18.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/parse.c 2008-06-26 17:13:26.000000000 +0100
+@@ -42,6 +42,7 @@
+ #endif /* HAVE_STDLIB_H */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <ctype.h>
+ #include <sys/types.h>
+ #include "asn1.h"
+--- snips-1.2/cmu-snmp/snmp/mini-client.c.orig 2008-06-26 17:12:21.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/mini-client.c 2008-06-26 17:12:27.000000000 +0100
+@@ -37,6 +37,7 @@
+ #include <sys/types.h>
+ #include <fcntl.h>
+ #include <stdio.h>
++#include <string.h>
+ #include <assert.h>
+ #include <ctype.h>
+ #include <errno.h>
+--- snips-1.2/lib/rrd_funcs.c.orig 2008-06-26 17:08:40.000000000 +0100
++++ snips-1.2/lib/rrd_funcs.c 2008-06-26 17:08:49.000000000 +0100
+@@ -38,6 +38,7 @@
+ #include "osdefs.h"
+ #include <sys/types.h>
+ #include <stdio.h>
++#include <string.h>
+ #include <errno.h>
+ #ifndef NeXT
+ # include <unistd.h> /* for access(), lseek() */
+--- snips-1.2/cmu-snmp/snmp/snmp_api_error.c.orig 2008-06-26 17:23:56.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/snmp_api_error.c 2008-06-26 17:24:06.000000000 +0100
+@@ -35,6 +35,7 @@
+ #endif /* HAVE_CONFIG_H */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/types.h>
+
+ #ifdef HAVE_STRINGS_H
+--- snips-1.2/cmu-snmp/snmp/snmp_extra.c.orig 2008-06-26 17:22:57.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/snmp_extra.c 2008-06-26 17:23:05.000000000 +0100
+@@ -36,6 +36,7 @@
+ #endif /* HAVE_CONFIG_H */
+
+ #include <stdio.h>
++#include <string.h>
+ #include <ctype.h>
+ #include <sys/types.h>
+
+--- snips-1.2/cmu-snmp/snmp/coexistance.c.orig 2008-06-26 17:23:26.000000000 +0100
++++ snips-1.2/cmu-snmp/snmp/coexistance.c 2008-06-26 17:23:33.000000000 +0100
+@@ -32,6 +32,7 @@
+ #endif /* HAVE_CONFIG_H */
+
+ #include <stdio.h>
++#include <string.h>
+ #ifdef WIN32
+ #include <winsock2.h>
+ #else /* WIN32 */
diff --git a/net-analyzer/snips/files/snips-1.2-non-interactive.patch b/net-analyzer/snips/files/snips-1.2-non-interactive.patch
new file mode 100644
index 000000000000..c6cb83386212
--- /dev/null
+++ b/net-analyzer/snips/files/snips-1.2-non-interactive.patch
@@ -0,0 +1,93 @@
+--- snips-1.2/Configure.orig 2008-06-26 16:46:49.000000000 +0100
++++ snips-1.2/Configure 2008-06-26 16:48:10.000000000 +0100
+@@ -72,11 +72,7 @@
+ if [ -f $PREVDEFS ]; then
+ echo "You seem to have already run $0 before, would you like"
+ echo "to take your previous answers as defaults [n]: " | tr -d '\012'
+- read input
+- if [ "$input" = "Y" ] || [ "$input" = "y" ]
+- then
+ . ./$PREVDEFS
+- fi
+ fi
+
+ cat <<!
+@@ -93,14 +89,11 @@
+ !
+
+ echo "Enter top level directory [${ROOTDIR}]: " | tr -d '\012'
+-read input ; if [ "X$input" != "X" ]; then ROOTDIR=${input}; fi
+
+ MANDIR=${ROOTDIR}/man
+ echo "Enter location of man pages [${MANDIR}]: " | tr -d '\012'
+-read input ; if [ "X$input" != "X" ]; then MANDIR=${input} ; fi
+
+ echo "Enter extension for man pages [${MANEXT}]: " | tr -d '\012'
+-read input ; if [ "X$input" != "X" ]; then MANEXT=${input} ; fi
+
+ cat <<!
+
+@@ -115,34 +108,27 @@
+ if [ ! -f ${MAIL} ]; then MAIL=/bin/mail ; fi
+ if [ ! -f ${MAIL} ]; then MAIL=/usr/bin/mail ; fi
+ echo "Where is your MAIL program located? [${MAIL}] :" | tr -d '\012'
+-read input ; if [ "X$input" != "X" ]; then MAIL="${input}" ; fi
+ if [ ! -f ${MAIL} ]; then echo "WARNING, ${MAIL} does not exist" ; fi
+
+ echo "Where should the operational email go? [${OPSMAIL}] :" | tr -d '\012'
+-read input ; if [ "X$input" != "X" ]; then OPSMAIL="${input}" ; fi
+
+ echo "Where should the admin email go? [${ADMINMAIL}] :" | tr -d '\012'
+-read input ; if [ "X$input" != "X" ]; then ADMINMAIL="${input}" ; fi
+
+
+ ##
+ ##
+ echo ""
+ echo "Which compiler would you like to use? [${CC}]: " | tr -d '\012'
+-read input ; if [ "X$input" != "X" ]; then CC="${input}" ; fi
+
+ echo "What compiler options do you want (-DDEBUG)? [${CFLAGS}]: " | tr -d '\012'
+-read input ; if [ "X$input" != "X" ]; then CFLAGS="${input}" ; fi
+
+ echo "What linker options do you want (-L/local/lib -lbind)? [${LIBS}]: " | tr -d '\012'
+-read input ; if [ "X$input" != "X" ]; then LIBS="${input}" ; fi
+
+ (mkdir TemP; cd TemP; ${YACC}) 2>&1 | egrep -i 'not.*found' >/dev/null 2>&1
+ if [ $? = 0 ]; then
+ echo "${YACC} NOT FOUND"
+ YACC="bison -y"
+ echo "Enter an alternative to yacc [${YACC}]: " | tr -d '\012'
+- read input ; if [ "X$input" != "X" ]; then YACC="${input}" ; fi
+ fi
+ rm -rf TemP
+
+@@ -150,7 +136,6 @@
+ if [ ! -f ${PERL} ]; then PERL=/usr/local/bin/perl ; fi
+ if [ ! -f ${PERL} ]; then
+ echo "Where is PERL located on your system? [$PERL]: "| tr -d '\012'
+- read input ; if [ "X$input" != "X" ]; then PERL="${input}" ; fi
+ if [ ! -f ${PERL} ]; then echo "WARNING, ${PERL} does not exist" ; fi
+ fi
+
+@@ -161,12 +146,10 @@
+ if [ -d $RRDLIBDIR ]; then RRDCFLAGS="-DRRDTOOL" ; fi
+ if [ "$RRDCFLAGS" = "" ]; then definput="n" ; else definput="y" ; fi
+ echo "Do you have RRDtool installed (www.caida.org)? [$definput]: " | tr -d '\012'
+-read input
+ if [ "X$input" = "X" ]; then input=$definput ; fi
+ if [ "$input" = "y" ] || [ "$input" = "Y" ]; then
+ RRDCFLAGS="-DRRDTOOL"
+ echo "Enter path to the RRD library [$RRDLIBDIR]: " | tr -d '\012'
+- read input ; if [ "X$input" != "X" ]; then RRDLIBDIR="${input}"; fi
+
+ if [ ! -f $RRDLIBDIR/librrd.a ]; then
+ echo "WARNING, $RRDLIBDIR/librrd.a not found"
+@@ -181,7 +164,6 @@
+ ## Check if they want the old NOCOL mode
+ #echo ""
+ #echo "Do you want to compile using the old NOCOL event structure? [no]: " | tr -d '\012'
+-#read input ; if [ "X$input" != "X" ]; then CFLAGS="${CFLAGS} -DNOCOL" ; fi
+
+
+ ##
diff --git a/net-analyzer/snips/files/snips-1.2-precache-config b/net-analyzer/snips/files/snips-1.2-precache-config
new file mode 100644
index 000000000000..24b63fb35275
--- /dev/null
+++ b/net-analyzer/snips/files/snips-1.2-precache-config
@@ -0,0 +1,24 @@
+# These answers are interdependent; do not edit this file!
+package="snips"
+ROOTDIR="/usr/snips"
+SRCDIR="/var/tmp/portage/net-analyzer/snips-1.2/work/snips-1.2"
+MANDIR="/usr/share/man/snips"
+MANEXT="n"
+OPSMAIL="root@localhost"
+ADMINMAIL="root@localhost"
+MAIL="/bin/mail"
+CC="gcc"
+YACC="yacc"
+LIBS=""
+RPCLIB=""
+PSFLAGS="axw"
+PERL="/usr/bin/perl"
+AR="ar r"
+WHOAMI="/usr/bin/whoami"
+RANLIB="ranlib"
+INSTALL="install"
+PING="/bin/ping"
+CURSESLIB="-lncurses"
+RRDCFLAGS="-DRRDTOOL"
+RRDLIBDIR="/usr/lib/"
+RRDLIBS="-L/usr/lib/ -lrrd"
diff --git a/net-analyzer/snips/metadata.xml b/net-analyzer/snips/metadata.xml
new file mode 100644
index 000000000000..883740516b06
--- /dev/null
+++ b/net-analyzer/snips/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+</maintainer>
+</pkgmetadata>
diff --git a/net-analyzer/snips/snips-1.2.ebuild b/net-analyzer/snips/snips-1.2.ebuild
new file mode 100644
index 000000000000..d827b0bd6aa1
--- /dev/null
+++ b/net-analyzer/snips/snips-1.2.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/snips/snips-1.2.ebuild,v 1.1 2008/06/27 15:25:00 chainsaw Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="System & Network Integrated Polling Software"
+HOMEPAGE="http://www.netplex-tech.com/snips/"
+SRC_URI="http://www.netplex-tech.com/software/downloads/${PN}/${P}.tar.gz"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ mail-client/mailx
+ net-analyzer/rrdtool
+ >=net-misc/iputils-20071127-r2
+ sys-libs/gdbm
+ sys-libs/ncurses"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # Gentoo-specific non-interactive configure override
+ cp "${FILESDIR}/${P}-precache-config" "${S}/Config.cache"
+ echo "CFLAGS=\"${CFLAGS} -fPIC\"" >> "${S}/Config.cache"
+ echo "CC=\"$(tc-getCC)\"" >> "${S}/Config.cache"
+ epatch "${FILESDIR}/${P}-non-interactive.patch"
+ # Applied to upstream CVS
+ epatch "${FILESDIR}/${P}-implicit-declarations.patch"
+ epatch "${FILESDIR}/${P}-conflicting-types.patch"
+ epatch "${FILESDIR}/${P}-code-ordering.patch"
+}
+
+src_compile() {
+ # Looks horrid due to missing linebreaks, suppress output
+ ebegin "Running configure script (with precached settings)"
+ ./Configure &> /dev/null || die "Unable to configure"
+ eend $?
+ emake || die "emake failed"
+}
+
+src_install() {
+ mkdir "${D}/usr"
+
+ emake \
+ # The perl-module Makefile will obey this
+ DESTDIR="${D}" \
+ # Unfortunately the rest does its own thing
+ ROOTDIR="${D}/usr/snips" \
+ DATADIR="${D}/usr/snips/data" \
+ ETCDIR="${D}/usr/snips/etc" \
+ BINDIR="${D}/usr/snips/bin" \
+ PIDDIR="${D}/usr/snips/run" \
+ INITDIR="${D}/usr/snips/init.d" \
+ MSGSDIR="${D}/usr/snips/msgs" \
+ RRD_DBDIR="${D}/usr/snips/rrddata" \
+ EXAMPLESDIR="${D}/usr/snips/etc/samples" \
+ DEVICEHELPDIR="${D}/usr/snips/device-help" \
+ CGIDIR="${D}/usr/snips/web/cgi" \
+ HTMLDIR="${D}/usr/snips/web/html" \
+ MANDIR="${D}/usr/snips/man" \
+ install \
+ || die "emake install failed"
+}