diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2013-05-27 22:27:47 +0200 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2013-05-27 22:56:57 +0200 |
commit | e1e4ad2705c93744c44e1a59e603f0fa8b6291dc (patch) | |
tree | 7154ca6dbe4fe4a7a82969be51025da1c1322984 | |
parent | dev-lang/python: add outdated patch to be able to cross compile python (diff) | |
download | portage-e1e4ad2705c93744c44e1a59e603f0fa8b6291dc.tar.xz |
add ebuild for arpalert
-rw-r--r-- | net-analyzer/arpalert/Manifest | 12 | ||||
-rw-r--r-- | net-analyzer/arpalert/arpalert-1.0.3_pre.ebuild | 52 | ||||
-rw-r--r-- | net-analyzer/arpalert/arpalert-1.1.3_pre.ebuild | 53 | ||||
-rw-r--r-- | net-analyzer/arpalert/arpalert-2.0.11_pre.ebuild | 53 | ||||
-rw-r--r-- | net-analyzer/arpalert/arpalert-2.0.8_pre.ebuild | 53 | ||||
-rw-r--r-- | net-analyzer/arpalert/arpalert-2.0.9_pre.ebuild | 53 | ||||
-rw-r--r-- | net-analyzer/arpalert/files/arpalert.initd | 22 | ||||
-rw-r--r-- | net-analyzer/arpalert/files/makefile.in.patch | 62 |
8 files changed, 360 insertions, 0 deletions
diff --git a/net-analyzer/arpalert/Manifest b/net-analyzer/arpalert/Manifest new file mode 100644 index 00000000..93d2d085 --- /dev/null +++ b/net-analyzer/arpalert/Manifest @@ -0,0 +1,12 @@ +AUX arpalert.initd 455 RMD160 791f85ecd470542588439778162b74f9cfc202f7 SHA1 fbab6fa6756904ed2f15ef278f3f7bb0214d31e9 SHA256 ad07c54243c56cb79ef1397839a22b18ceb7c637ccb3e973b514869e6cc84a37 +AUX makefile.in.patch 2542 RMD160 f25326a54823dd39a5765e990b753fe2f47e2432 SHA1 393eead258f7bb9f7e8c02fb0d90e70946235daa SHA256 939a47347c26d1be54d0ec0078f6e16a6da9483344c23249038fd0c5be0e166f +DIST arpalert-1.0.3.tar.gz 75450 RMD160 ac3f40fd88f657d2049fc79fab7b345167621440 SHA1 a32e33b598bb2b5c86c742630b75ba935a4e5d5a SHA256 dc1bd2bb150360cffe93a08bd9a1575697c3f95845e39fa90b2016aa1a1d620f +DIST arpalert-1.1.3.tar.gz 102200 RMD160 51183bccb7426d1fcd620d29a6563cd98a2c1446 SHA1 1f2b7fb2778b600cb28f31f4076589ef9b29ac2d SHA256 145062a58b8351b66aeb64a4f3ab33f813165bb39eb97252e8794fe30b778dc5 +DIST arpalert-2.0.11.tar.gz 600676 RMD160 2b5d7680ea79d65a23bda36a4ea2f3cd840c6ec1 SHA1 9fc4f278f7b0bf9736ec0e5bd1dc4fd214f83d51 SHA256 114fadc432fd789305cb9c764f82240aca2e77aa60ef5974f0492e77866318d8 +DIST arpalert-2.0.8.tar.gz 598406 RMD160 5681b359e79e0a7bff02cdd3408e90f446aa59ff SHA1 fc5009c12fc6376512fd06442c1ad7ea6b2b9fad SHA256 ac8d19a147672adaadfe61f812164f5719bdcbd46ef7516895d2cc687d8da7bb +DIST arpalert-2.0.9.tar.gz 601112 RMD160 8d04a95d8cda81cdfc76bbbf336dd20f1aa9aed7 SHA1 a81d36144dd5126532b9a81b5462b7b6f32617a5 SHA256 1b0fb55cf593acdb19f00154afcd5cb12116602b98982dfac827112c8e26d4b8 +EBUILD arpalert-1.0.3_pre.ebuild 1217 RMD160 71c48830e3bc4e6834c33f1eafe3ffc645d7e730 SHA1 c031c014defb4ac5592f9a0125d7f895c70f5dac SHA256 7662c8eb1bc1516e44c75c4d2d466e9720ec62970ec4fa9920386f1f731ccf55 +EBUILD arpalert-1.1.3_pre.ebuild 1303 RMD160 2c7baae78b916813b772df55317095f2e0c22858 SHA1 2154bb741c9cd16d371aba92cf1740618b6bc2d6 SHA256 d23bcb38a902a26d6b2833b3b17403a5c8f0ee1179f045e820ac3a9ddfb5823f +EBUILD arpalert-2.0.11_pre.ebuild 1305 RMD160 f33f43579fa6ad48543608adb492a6c9f3917440 SHA1 67978b409f2ebb00a2a178a4b8745af1979ef330 SHA256 6752e7eba33709cc69eb0200c302483de0de5080e8b92c9289ed84800dcfb4fe +EBUILD arpalert-2.0.8_pre.ebuild 1303 RMD160 dd46ba343aee062218f95917d1ce642658d1ab7e SHA1 ad3647eaf4a0ff34ca8e75ff06b386b3a86e20f4 SHA256 275c17f2a2f1ab2a27f207a9fd0229041e3b3474d04c16d977e51b7ee5410573 +EBUILD arpalert-2.0.9_pre.ebuild 1303 RMD160 2c7baae78b916813b772df55317095f2e0c22858 SHA1 2154bb741c9cd16d371aba92cf1740618b6bc2d6 SHA256 d23bcb38a902a26d6b2833b3b17403a5c8f0ee1179f045e820ac3a9ddfb5823f diff --git a/net-analyzer/arpalert/arpalert-1.0.3_pre.ebuild b/net-analyzer/arpalert/arpalert-1.0.3_pre.ebuild new file mode 100644 index 00000000..49bc09f9 --- /dev/null +++ b/net-analyzer/arpalert/arpalert-1.0.3_pre.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools poly-c_ebuilds +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" + +DESCRIPTION="arpalert is used for monitoring ethernet networks" +HOMEPAGE="http://www.arpalert.org/" +SRC_URI="http://www.arpalert.org/src/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug syslog" +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + # use global CFLAGS + epatch "${FILESDIR}"/makefile.in.patch + eautoreconf +} + +src_compile() { + econf \ + --localstatedir=/var \ + $(use_enable debug) \ + $(use_with syslog) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc CHANGES README VERSION + newinitd "${FILESDIR}"/${PN}.initd ${PN} || die "failed to install init.d file" + keepdir /var/lib/${PN} + chown ${PN} "${D}"/var/lib/${PN} || eerror "chown failed" +} + +pkg_setup() { + enewuser ${PN} -1 -1 -1 nogroup \ + || die "failed to create user \"${PN}\"" +} + +pkg_postrm() { + elog "After removing this package from your system, run" + elog "\"userdel -f ${PN}\"" + elog "to remove ${PN}-user, too." +} diff --git a/net-analyzer/arpalert/arpalert-1.1.3_pre.ebuild b/net-analyzer/arpalert/arpalert-1.1.3_pre.ebuild new file mode 100644 index 00000000..a8fc6ecc --- /dev/null +++ b/net-analyzer/arpalert/arpalert-1.1.3_pre.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools poly-c_ebuilds +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" + +DESCRIPTION="arpalert is used for monitoring ethernet networks" +HOMEPAGE="http://www.arpalert.org/" +SRC_URI="http://www.arpalert.org/src/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug syslog" +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + # use global CFLAGS + sed -e 's:CFLAGS:MY_CFLAGS:g' -e 's:-O2:$(CFLAGS):' -e 's: -O2::g' \ + -i "${S}"/Makefile.in || die "sed Makefile.in failed" + eautoreconf +} + +src_compile() { + econf \ + --localstatedir=/var \ + $(use_enable debug) \ + $(use_with syslog) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc CHANGES README VERSION + newinitd "${FILESDIR}"/${PN}.initd ${PN} || die "failed to install init.d file" + keepdir /var/lib/${PN} + chown ${PN} "${D}"/var/lib/${PN} || eerror "chown failed" +} + +pkg_setup() { + enewuser ${PN} -1 -1 -1 nogroup \ + || die "failed to create user \"${PN}\"" +} + +pkg_postrm() { + elog "After removing this package from your system, run" + elog "\"userdel -f ${PN}\"" + elog "to remove ${PN}-user, too." +} diff --git a/net-analyzer/arpalert/arpalert-2.0.11_pre.ebuild b/net-analyzer/arpalert/arpalert-2.0.11_pre.ebuild new file mode 100644 index 00000000..5d2007f7 --- /dev/null +++ b/net-analyzer/arpalert/arpalert-2.0.11_pre.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools poly-c_ebuilds +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" + +DESCRIPTION="arpalert is used for monitoring ethernet networks" +HOMEPAGE="http://www.arpalert.org/" +SRC_URI="http://www.arpalert.org/src/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug syslog" +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + # use global CFLAGS + #sed -e 's:CFLAGS:MY_CFLAGS:g' -e 's:-O2:$(CFLAGS):' -e 's: -O2::g' \ + # -i "${S}"/Makefile.in || die "sed Makefile.in failed" + eautoreconf +} + +src_compile() { + econf \ + --localstatedir=/var \ + $(use_enable debug) \ + $(use_with syslog) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc CHANGES README VERSION + newinitd "${FILESDIR}"/${PN}.initd ${PN} || die "failed to install init.d file" + keepdir /var/lib/${PN} + chown ${PN} "${D}"/var/lib/${PN} || eerror "chown failed" +} + +pkg_setup() { + enewuser ${PN} -1 -1 -1 nogroup \ + || die "failed to create user \"${PN}\"" +} + +pkg_postrm() { + elog "After removing this package from your system, run" + elog "\"userdel -f ${PN}\"" + elog "to remove ${PN}-user, too." +} diff --git a/net-analyzer/arpalert/arpalert-2.0.8_pre.ebuild b/net-analyzer/arpalert/arpalert-2.0.8_pre.ebuild new file mode 100644 index 00000000..0466cc8c --- /dev/null +++ b/net-analyzer/arpalert/arpalert-2.0.8_pre.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools poly-c_ebuilds +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" + +DESCRIPTION="arpalert is used for monitoring ethernet networks" +HOMEPAGE="http://www.arpalert.org/" +SRC_URI="http://www.arpalert.org/src/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug syslog" +DEPEND="" + +pkg_setup() { + enewuser ${PN} -1 -1 -1 nogroup \ + || die "failed to create user \"${PN}\"" +} + +src_unpack() { + unpack ${A} + cd "${S}" + # use global CFLAGS + sed -e 's:CFLAGS:MY_CFLAGS:g' -e 's:-O2:$(CFLAGS):' -e 's: -O2::g' \ + -i "${S}"/Makefile.in || die "sed Makefile.in failed" + eautoreconf +} + +src_compile() { + econf \ + --localstatedir=/var \ + $(use_enable debug) \ + $(use_with syslog) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc CHANGES README VERSION + newinitd "${FILESDIR}"/${PN}.initd ${PN} || die "failed to install init.d file" + keepdir /var/lib/${PN} + chown ${PN} "${D}"/var/lib/${PN} || eerror "chown failed" +} + +pkg_postrm() { + elog "After removing this package from your system, run" + elog "\"userdel -f ${PN}\"" + elog "to remove ${PN}-user, too." +} diff --git a/net-analyzer/arpalert/arpalert-2.0.9_pre.ebuild b/net-analyzer/arpalert/arpalert-2.0.9_pre.ebuild new file mode 100644 index 00000000..a8fc6ecc --- /dev/null +++ b/net-analyzer/arpalert/arpalert-2.0.9_pre.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils autotools poly-c_ebuilds +WANT_AUTOCONF="latest" +WANT_AUTOMAKE="latest" + +DESCRIPTION="arpalert is used for monitoring ethernet networks" +HOMEPAGE="http://www.arpalert.org/" +SRC_URI="http://www.arpalert.org/src/${MY_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug syslog" +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + # use global CFLAGS + sed -e 's:CFLAGS:MY_CFLAGS:g' -e 's:-O2:$(CFLAGS):' -e 's: -O2::g' \ + -i "${S}"/Makefile.in || die "sed Makefile.in failed" + eautoreconf +} + +src_compile() { + econf \ + --localstatedir=/var \ + $(use_enable debug) \ + $(use_with syslog) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc CHANGES README VERSION + newinitd "${FILESDIR}"/${PN}.initd ${PN} || die "failed to install init.d file" + keepdir /var/lib/${PN} + chown ${PN} "${D}"/var/lib/${PN} || eerror "chown failed" +} + +pkg_setup() { + enewuser ${PN} -1 -1 -1 nogroup \ + || die "failed to create user \"${PN}\"" +} + +pkg_postrm() { + elog "After removing this package from your system, run" + elog "\"userdel -f ${PN}\"" + elog "to remove ${PN}-user, too." +} diff --git a/net-analyzer/arpalert/files/arpalert.initd b/net-analyzer/arpalert/files/arpalert.initd new file mode 100644 index 00000000..d894c1fe --- /dev/null +++ b/net-analyzer/arpalert/files/arpalert.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +# Written by Polynomial-C + +depend() { + need net +} + +start() { + ebegin "Starting arpalert" + start-stop-daemon --quiet --start --pidfile /var/run/arpalert.lock --exec /usr/sbin/arpalert -- -d + eend $? +} + +stop() { + ebegin "Stopping arpalert" + start-stop-daemon --quiet --stop --pidfile /var/run/arpalert.lock + eend $? +} diff --git a/net-analyzer/arpalert/files/makefile.in.patch b/net-analyzer/arpalert/files/makefile.in.patch new file mode 100644 index 00000000..766d90ce --- /dev/null +++ b/net-analyzer/arpalert/files/makefile.in.patch @@ -0,0 +1,62 @@ +--- arpalert-1.0.3/Makefile.in.orig 2006-09-01 23:53:40.000000000 +0200 ++++ arpalert-1.0.3/Makefile.in 2006-09-06 15:00:47.686427360 +0200 +@@ -23,7 +23,7 @@ + src_dir = . + + CC = @CC@ +-CFLAGS = -Wall -O2 \ ++MY_CFLAGS = -Wall $(CFLAGS) \ + -DCONFIG_FILE=\"$(config_dir)/arpalert.conf\" \ + -DPID_FILE=\"$(lock_dir)/arpalert.pid\" + LIBS = @LIBS@ +@@ -40,39 +40,39 @@ + $(src_dir)/capture.o + + arpalert: $(OBJECT_LIST) +- $(CC) $(CFLAGS) -g -O2 -o arpalert $(OBJECT_LIST) $(LIBS) ++ $(CC) $(MY_CFLAGS) -g -o arpalert $(OBJECT_LIST) $(LIBS) + + alerte.o: alerte.c config.h alerte.h log.h loadconfig.h errmsg.h serveur.h +- $(CC) $(CFLAGS) -c -o alerte.o $(src_dir)/alerte.c ++ $(CC) $(MY_CFLAGS) -c -o alerte.o $(src_dir)/alerte.c + + arpalert.o: arpalert.c config.h loadconfig.h log.h data.h maclist.h capture.h serveur.h \ + alerte.h sens.h sens_timeouts.h +- $(CC) $(CFLAGS) -c -o arpalert.o $(src_dir)/arpalert.c ++ $(CC) $(MY_CFLAGS) -c -o arpalert.o $(src_dir)/arpalert.c + + capture.o: capture.c config.h capture.h sens.h log.h loadconfig.h data.h \ + alerte.h sens_timeouts.h +- $(CC) $(CFLAGS) -c -o capture.o $(src_dir)/capture.c ++ $(CC) $(MY_CFLAGS) -c -o capture.o $(src_dir)/capture.c + + data.o: data.c config.h data.h log.h loadconfig.h +- $(CC) $(CFLAGS) -c -o data.o $(src_dir)/data.c ++ $(CC) $(MY_CFLAGS) -c -o data.o $(src_dir)/data.c + + loadconfig.o: loadconfig.c loadconfig.h config.h log.h +- $(CC) $(CFLAGS) -c -o loadconfig.o $(src_dir)/loadconfig.c ++ $(CC) $(MY_CFLAGS) -c -o loadconfig.o $(src_dir)/loadconfig.c + + log.o: log.c log.h config.h loadconfig.h +- $(CC) $(CFLAGS) -c -o log.o $(src_dir)/log.c $(DEFS) ++ $(CC) $(MY_CFLAGS) -c -o log.o $(src_dir)/log.c $(DEFS) + + maclist.o: maclist.c maclist.h config.h data.h loadconfig.h log.h +- $(CC) $(CFLAGS) -c -o maclist.o $(src_dir)/maclist.c ++ $(CC) $(MY_CFLAGS) -c -o maclist.o $(src_dir)/maclist.c + + sens.o: sens.c sens.h config.h loadconfig.h data.h log.h +- $(CC) $(CFLAGS) -c -o sens.o $(src_dir)/sens.c ++ $(CC) $(MY_CFLAGS) -c -o sens.o $(src_dir)/sens.c + + sens_timeouts.o: sens_timeouts.c sens_timeouts.h config.h data.h log.h loadconfig.h +- $(CC) $(CFLAGS) -c -o sens_timeouts.o $(src_dir)/sens_timeouts.c ++ $(CC) $(MY_CFLAGS) -c -o sens_timeouts.o $(src_dir)/sens_timeouts.c + + serveur.o: serveur.c serveur.h config.h log.h loadconfig.h +- $(CC) $(CFLAGS) -c -o serveur.o $(src_dir)/serveur.c ++ $(CC) $(MY_CFLAGS) -c -o serveur.o $(src_dir)/serveur.c + + mrproper: clean + rm -rf arpalert-sources.pdf autom4te.cache configure Makefile \ |