diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-09-30 17:27:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-09-30 17:27:54 +0100 |
commit | f70a1bfc721336d4fc7dfb711c2f518a6b18cf16 (patch) | |
tree | e907cb121b30e3c1df1710719c0ddf4029597a47 /net-analyzer/arpon | |
parent | db063b515939ab15261136b24e4bc44386335c0c (diff) |
gentoo resync : 30.09.2020
Diffstat (limited to 'net-analyzer/arpon')
-rw-r--r-- | net-analyzer/arpon/Manifest | 8 | ||||
-rw-r--r-- | net-analyzer/arpon/arpon-3.0.ebuild | 40 | ||||
-rw-r--r-- | net-analyzer/arpon/files/arpon-3.0-CFLAGS.patch | 17 | ||||
-rw-r--r-- | net-analyzer/arpon/files/arpon-3.0-gentoo.patch | 146 | ||||
-rw-r--r-- | net-analyzer/arpon/files/arpon.confd-3 | 4 | ||||
-rw-r--r-- | net-analyzer/arpon/files/arpon.initd-3 | 21 | ||||
-rw-r--r-- | net-analyzer/arpon/metadata.xml | 10 |
7 files changed, 241 insertions, 5 deletions
diff --git a/net-analyzer/arpon/Manifest b/net-analyzer/arpon/Manifest index 634481321085..c56c66009953 100644 --- a/net-analyzer/arpon/Manifest +++ b/net-analyzer/arpon/Manifest @@ -1,8 +1,14 @@ AUX arpon-2.7.2-CFLAGS.patch 407 BLAKE2B 5cb747ba4f8153a1f1e13da49fc9cb8f55b75b8f80b17ea3c336d4feb863f23dfe08d93209a646b85301d8d0ba7d76a958e5d5468b47b08dcb6ec8be307d7b92 SHA512 9029ddc9b024e62f21a49faab5c39008bec22b88cd6fac5f31ebb7327357159d6ec36f0f750bb4d5e985115d553b95b8c1daf2794e9edb7c40dae06fd8872a07 AUX arpon-2.7.2-etc.patch 356 BLAKE2B 5cbec9b24dfd2a75f1a743e7a08031945fbadb7f6f50d3b62c611fa797abf3f866fca7f4f2e8d880544effa5411c1fec408ef4e43d96af2859bcb16215ae4121 SHA512 2bafa030d87d9b216902246053d2521ed4395c89d12b2bddef4e38671442a5d1e54afc8bde3a77944e93f93b703f1f60b0f6f84535fefc8331ec59aecb69e492 +AUX arpon-3.0-CFLAGS.patch 1787 BLAKE2B 234bc1d6d991e17458c4abbdba64afcc4edde4cdd70f734fade44e50059545b453f2ce93b9f46b180db8e671287045aeafda9158f78541b699a888d81effe8c4 SHA512 032959619ac5a33aa52ef589661659d4ad3842a7778bb40dd1c8d45fa6f1edac02dc8b4078fbdb41b8af52d2f7423c1d54ac2246582aec563fab42ae8859295e +AUX arpon-3.0-gentoo.patch 4736 BLAKE2B 854efd88ff29b13defdae4d57ca97f00066a9a21528d23df2014f031dfe6467fe60de06bf9f99f72eed8745a9c1df86bb6f9d362ce0e637a0d221c3ea59ce304 SHA512 63f9122d1cfb5e05bb32f7dbf9a9fde9e7f155b16d0f42fc890cbccaf8409773bbcd2907e08f69fdc3739d0683c7495d132a663f8f9f6ce83405b6380f02f807 AUX arpon.confd 128 BLAKE2B 864417d8892d037f005123938b3ffd970c69f6ad06fdc6e031872250a126fb92a63ccb247e6f49a8e6e716a1138443df29d2838e5a1c73e44e04632977f78789 SHA512 1300ffd903366a5970c5c2b6b7a570ee6e1e696d18a5f16340c7f192c5ff4e41694a180e0d5ab86c1fb64bd015dab94eb52ef5ff429280b56f5ec4112abe3b11 +AUX arpon.confd-3 75 BLAKE2B 3a054d7d5392a9a877aafc25687f15ddf6a483122fc29ba34a4399e31be2ce009b42a5a8b69fd4a1486f1b37d917221a7c7121449006210b8a38213709c1a2e9 SHA512 c13b5fd267ac0e96a30d235917ba644035d05e13c4cd8121081fa7a0d97fc921a1f828727e462245e701ae84b75738fb39dbc95c133f11d53641412669d3c584 AUX arpon.initd 406 BLAKE2B b519b05207a2cf54301493d85a5b50205d27bacc5c4eb2dedb18ccc450a01b74b9d159da0c66b6aed20a31ec454747e0ab533906633cd8dc7ab6bdaaa9d44ca0 SHA512 5a889f94fa495ee63475a8ca2774b09247548a0a7170b32b0c74ed5808822818fda23516959ad4c3598ed39f31ad2a2ab68b81f00a715267b0d12e194532324a +AUX arpon.initd-3 472 BLAKE2B 159774908987a99ce884248d1a972d0c74395b29637f7adc638429925daa98bcd52b6393a73d7e81177c0b9c108ebbc251087587e866d484cd10d60a18af68b0 SHA512 22216841bd716052a25195e2ae693c13b9f1da503195b2a22a1fc0dcab3377c94a02c4e9c1115359b4e40eb63a56fe207767815edb11c42d01bdd75411b5a057 DIST ArpON-2.7.2.tar.gz 2780607 BLAKE2B 58d7a0db475658d90112441508d4c4d9babd601533a6ab9a22b24f07e037b6f3debcbe0f3c1f09a87b7e0cdf9217a38f52b85431db023d12b0f1ee58765e0bfb SHA512 7518f8f8920817725c9b3e0a6420190dcc101b1c0c7cd9eec50870b3f893fe2322eddc90cb71e9c3c35326b4e1730aa02797ca51775caa9401807da3978628b4 +DIST ArpON-3.0-ng.tar.gz 8795979 BLAKE2B 81b1fe9a426b5b0960911cbbac984482aeea15a957fac72a10e7dd9a45a609da90ca14163957cc008541be4cfaf426f07fa9c64ac4dff933f568b20284c5211d SHA512 e6338018d65f3f8300958e168a9eb6f6be85cba21ae0aee4b03e9838a29a06afbf2448c2f104367aa18389cc549e4489bcf8dad384ad46eadf2884a0908238af EBUILD arpon-2.7.2-r1.ebuild 727 BLAKE2B e401df619a1da645dad882e67b69451a01d2837475d39a755b453575698f90cf021bb7165016aff0805f4fa7d6fd2852ac6ecfeddb43deb7cd86b68d0aa94965 SHA512 a81ed2f8a530ffb3a9781ca5785c58d0adc01867f650eedda0511fc94376b3f077ef8fb99e221ce1e82b04c796a466c0c2c579203820f5ee8a400867f236b8b6 EBUILD arpon-2.7.2.ebuild 884 BLAKE2B e83db5a744d62b0a7f7f3e7441a300345f81799617c93f220f320cb61f653c209aaa631fb0525d159c95337d83d339ca19e979a8cd3f4a35580e487c8085101d SHA512 4427110fc2ac7557d57d2bf9b453bb2b121ac5121e287d4273f1aea4bdc503ab38f64092c1776ca64d2ad66fddbeae4a25c82b53b98d6734b3a3347b070adbbe -MISC metadata.xml 242 BLAKE2B ff85d6f7c94b7a327031d666c89344f6d69ed7a8c5cac45f89650c5f3aeb43edd3a4c7b5814ace420c7804a411235ba0f7deda58424e417681f74f9468e0ef0e SHA512 a01133ba691e36e58aa94e18a91db4a4a42b8ae621540319cab84241a07cc541263f753268ab759430699332a77018423c1a54d886d9c2fd3fab24537b64742d +EBUILD arpon-3.0.ebuild 836 BLAKE2B 8a6da8f0a5a6b82d0908dbeacf5309f5ec657e8e0c61966aaad40595da2a324102015cba0160b5b7d20bfc1541d19795c3a6cc8d35ec842316820daddd54c590 SHA512 bc05ddc3562710bbe8cb5a94b03fd74cd880dd62c8a0a5182e51d15fc231bee00248db728273d81ae6bb624d3f38deb7dea05ad7b658789c97524a7d8b1c19ca +MISC metadata.xml 285 BLAKE2B d232c837f5b78009aedc859ac2aa78da0775cb937b3742bec976767463c738db4054feb51e08725449432ef4c74add9697e2781938819d6e35cdccdfaaa2b590 SHA512 16762a0e8ae17a8f288d969f0f8d9dc15ce522c2c0e007007830dd3efe1ae96dc53f0d034f591fb6b6f7eb039fbde52f37f596bf9a34805900952391540bee4a diff --git a/net-analyzer/arpon/arpon-3.0.ebuild b/net-analyzer/arpon/arpon-3.0.ebuild new file mode 100644 index 000000000000..6d1866670e89 --- /dev/null +++ b/net-analyzer/arpon/arpon-3.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit cmake + +DESCRIPTION="ArpON (Arp handler inspectiON) is a portable Arp handler" + +MY_PN="ArpON" +MY_P="${MY_PN}-${PV}" +HOMEPAGE="http://arpon.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}-ng.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + dev-libs/libdnet + net-libs/libnet:1.1 + net-libs/libpcap +" +RDEPEND=" + ${DEPEND} +" +PATCHES=( + "${FILESDIR}"/${PN}-3.0-CFLAGS.patch + "${FILESDIR}"/${PN}-3.0-gentoo.patch +) +DOCS=( AUTHOR CHANGELOG README THANKS ) +S="${WORKDIR}"/${MY_P}-ng + +src_install() { + cmake_src_install + newinitd "${FILESDIR}"/${PN}.initd-3 ${PN} + newconfd "${FILESDIR}"/${PN}.confd-3 ${PN} + + rm -r "${ED}"/var/{log,run} || die + mv "${ED}"/usr/share/doc/{${PN},${PF}} || die +} diff --git a/net-analyzer/arpon/files/arpon-3.0-CFLAGS.patch b/net-analyzer/arpon/files/arpon-3.0-CFLAGS.patch new file mode 100644 index 000000000000..7cc917b305c7 --- /dev/null +++ b/net-analyzer/arpon/files/arpon-3.0-CFLAGS.patch @@ -0,0 +1,17 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -88,12 +88,12 @@ + message(STATUS "Build type: Debug") + + set(CMAKE_BUILD_TYPE "Debug") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -Wformat=2 -Winit-self -Wreturn-type -Wswitch-default -Wswitch-enum -Wunused-parameter -Wuninitialized -Wstrict-aliasing=3 -Wstrict-overflow=5 -Wdeclaration-after-statement -Wundef -Wpointer-arith -Wunsafe-loop-optimizations -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsizeof-pointer-memaccess -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-declaration -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wvariadic-macros -Wvarargs -Wvla -Wdisabled-optimization -Woverlength-strings -O0 -g -ggdb") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wformat=2 -Winit-self -Wreturn-type -Wswitch-default -Wswitch-enum -Wunused-parameter -Wuninitialized -Wstrict-aliasing=3 -Wstrict-overflow=5 -Wdeclaration-after-statement -Wundef -Wpointer-arith -Wunsafe-loop-optimizations -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsizeof-pointer-memaccess -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-declaration -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wvariadic-macros -Wvarargs -Wvla -Wdisabled-optimization -Woverlength-strings") + else(cmake_build_type_tolower STREQUAL "debug") + message(STATUS "Build type: Release") + + set(CMAKE_BUILD_TYPE "Release") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -O3 -DNDEBUG") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -DNDEBUG") + endif(cmake_build_type_tolower STREQUAL "debug") + + find_package(Headers) diff --git a/net-analyzer/arpon/files/arpon-3.0-gentoo.patch b/net-analyzer/arpon/files/arpon-3.0-gentoo.patch new file mode 100644 index 000000000000..1deda181acf0 --- /dev/null +++ b/net-analyzer/arpon/files/arpon-3.0-gentoo.patch @@ -0,0 +1,146 @@ +--- a/doc/CMakeLists.txt ++++ b/doc/CMakeLists.txt +@@ -31,7 +31,7 @@ + + set(arpon_doc_src "${CMAKE_SOURCE_DIR}/doc/arpon") + +-if(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++if(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + install(DIRECTORY ${arpon_doc_src} + DESTINATION /usr/share/doc + FILE_PERMISSIONS OWNER_READ GROUP_READ WORLD_READ +@@ -41,7 +41,7 @@ + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc + FILE_PERMISSIONS OWNER_READ GROUP_READ WORLD_READ + COMPONENT Doc) +-endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + + # + # EOF +--- a/log/CMakeLists.txt ++++ b/log/CMakeLists.txt +@@ -31,7 +31,7 @@ + + set(arpon_log_src "${CMAKE_SOURCE_DIR}/log/arpon.log") + +-if(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++if(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + install(FILES ${arpon_log_src} + DESTINATION /var/log + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ +@@ -41,7 +41,7 @@ + DESTINATION ${CMAKE_INSTALL_PREFIX}/log + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ + COMPONENT Log) +-endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + + # + # EOF +--- a/etc/CMakeLists.txt ++++ b/etc/CMakeLists.txt +@@ -31,7 +31,7 @@ + + set(arpon_etc_src "${CMAKE_SOURCE_DIR}/etc/arpon.conf") + +-if(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++if(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + install(FILES ${arpon_etc_src} + DESTINATION /etc + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ +@@ -41,7 +41,7 @@ + DESTINATION ${CMAKE_INSTALL_PREFIX}/etc + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ + COMPONENT Etc) +-endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + + # + # EOF +--- a/run/CMakeLists.txt ++++ b/run/CMakeLists.txt +@@ -31,7 +31,7 @@ + + set(arpon_run_src "${CMAKE_SOURCE_DIR}/run/arpon.pid") + +-if(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++if(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + install(FILES ${arpon_run_src} + DESTINATION /var/run + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ +@@ -41,7 +41,7 @@ + DESTINATION ${CMAKE_INSTALL_PREFIX}/run + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ + COMPONENT Run) +-endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + + # + # EOF +--- a/man8/CMakeLists.txt ++++ b/man8/CMakeLists.txt +@@ -31,7 +31,7 @@ + + set(arpon_man_src "${CMAKE_SOURCE_DIR}/man8/arpon.8") + +-if(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++if(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + set(ARPON_DOC_FILE + "/usr/share/doc/arpon/index.html") + set(ARPON_ETC_FILE +@@ -49,7 +49,7 @@ + "${CMAKE_INSTALL_PREFIX}/log/arpon.log") + set(ARPON_PID_FILE + "${CMAKE_INSTALL_PREFIX}/run/arpon.pid") +-endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + + file(READ ${arpon_man_src} FILE_CONTENT) + string(REGEX REPLACE "ARPON_DOC" "${ARPON_DOC_FILE}" +@@ -65,7 +65,7 @@ + MODIFIED_FILE_CONTENT4 "${MODIFIED_FILE_CONTENT3}") + file(WRITE ${PROJECT_BINARY_DIR}/man8/arpon.8 "${MODIFIED_FILE_CONTENT4}") + +-if(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++if(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + install(FILES + ${PROJECT_BINARY_DIR}/man8/arpon.8 DESTINATION /usr/share/man/man8 + PERMISSIONS OWNER_READ GROUP_READ WORLD_READ +@@ -76,7 +76,7 @@ + ${CMAKE_INSTALL_PREFIX}/share/man/man8 + PERMISSIONS OWNER_READ GROUP_READ WORLD_READ + COMPONENT Man) +-endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + + # + # EOF +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -29,13 +29,13 @@ + # $ArpON: CMakeLists.txt,v 3.0-ng 01/29/2016 03:07:40 spikey Exp $ + # + +-if(${CMAKE_INSTALL_PREFIX} STREQUAL "/") +- set(ARPON_SBIN /sbin/arpon) ++if(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") ++ set(ARPON_SBIN /usr/sbin/arpon) + set(ARPON_DOC /usr/share/doc/arpon/index.html) + set(ARPON_ETC /etc/arpon.conf) + set(ARPON_LOG /var/log/arpon.log) + set(ARPON_PID /var/run/arpon.pid) +- set(install_prefix /sbin) ++ set(install_prefix /usr/sbin) + else(${CMAKE_INSTALL_PREFIX} STREQUAL "/") + set(ARPON_SBIN ${CMAKE_INSTALL_PREFIX}/sbin/arpon) + set(ARPON_DOC ${CMAKE_INSTALL_PREFIX}/share/doc/arpon/index.html) +@@ -43,7 +43,7 @@ + set(ARPON_LOG ${CMAKE_INSTALL_PREFIX}/log/arpon.log) + set(ARPON_PID ${CMAKE_INSTALL_PREFIX}/run/arpon.pid) + set(install_prefix ${CMAKE_INSTALL_PREFIX}/sbin) +-endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/") ++endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr") + + configure_file( + "${PROJECT_SOURCE_DIR}/src/config.h.in" diff --git a/net-analyzer/arpon/files/arpon.confd-3 b/net-analyzer/arpon/files/arpon.confd-3 new file mode 100644 index 000000000000..9508cb644ddf --- /dev/null +++ b/net-analyzer/arpon/files/arpon.confd-3 @@ -0,0 +1,4 @@ +METHOD="--darpi" +IFACE="eth0" + +ARPON_OPTS="${METHOD} --interface ${IFACE}" diff --git a/net-analyzer/arpon/files/arpon.initd-3 b/net-analyzer/arpon/files/arpon.initd-3 new file mode 100644 index 000000000000..0fad4cebb3bf --- /dev/null +++ b/net-analyzer/arpon/files/arpon.initd-3 @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + checkpath -f /var/log/arpon.log + checkpath -f /var/run/arpon.pid + ebegin "Starting arpon" + start-stop-daemon --start --background --make-pidfile --pidfile "/var/run/arpon.pid" \ + --exec /usr/sbin/arpon -- ${ARPON_OPTS} >/dev/null 2>&1 + eend $? +} + +stop() { + ebegin "Stopping arpon" + start-stop-daemon --stop --pidfile "/var/run/arpon.pid" + eend $? +} diff --git a/net-analyzer/arpon/metadata.xml b/net-analyzer/arpon/metadata.xml index d587671b9bf6..68ff631bb172 100644 --- a/net-analyzer/arpon/metadata.xml +++ b/net-analyzer/arpon/metadata.xml @@ -1,8 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> - <upstream> - <remote-id type="sourceforge">arpon</remote-id> - </upstream> +<maintainer type='project'> +<email>netmon@gentoo.org</email> +</maintainer> +<upstream> +<remote-id type="sourceforge">arpon</remote-id> +</upstream> </pkgmetadata> |