summaryrefslogtreecommitdiff
path: root/net-wireless/wavemon
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-wireless/wavemon
reinit the tree, so we can have metadata
Diffstat (limited to 'net-wireless/wavemon')
-rw-r--r--net-wireless/wavemon/Manifest10
-rw-r--r--net-wireless/wavemon/files/wavemon-0.6.7-dont-override-CFLAGS.patch11
-rw-r--r--net-wireless/wavemon/files/wavemon-0.7.6-ncurses-tinfo.patch19
-rw-r--r--net-wireless/wavemon/files/wavemon-0.8.0-build.patch33
-rw-r--r--net-wireless/wavemon/metadata.xml8
-rw-r--r--net-wireless/wavemon/wavemon-0.7.6.ebuild50
-rw-r--r--net-wireless/wavemon/wavemon-0.8.0.ebuild48
7 files changed, 179 insertions, 0 deletions
diff --git a/net-wireless/wavemon/Manifest b/net-wireless/wavemon/Manifest
new file mode 100644
index 000000000000..e0f201a4d09f
--- /dev/null
+++ b/net-wireless/wavemon/Manifest
@@ -0,0 +1,10 @@
+AUX wavemon-0.6.7-dont-override-CFLAGS.patch 295 SHA256 97c73430f0c131a2b70f907af1b0e49282b300a2049abc10ae6e5e2c4d133069 SHA512 1837707455d1718e3a067f5799e8c627f536d91ed75a9ab3c1cf432337776a41680214093be8863b158be5ddff305281fabac0b38d657bb9c3a1a9a72060c32e WHIRLPOOL 242c6f401d00441c3bff0e748cc1f8898fc2633f949e4dedd4beadf65f7ccf1a5ce83712194a9aa30ea745ce213a2dcce5e7cff8b135c186cde718bb8763a1cc
+AUX wavemon-0.7.6-ncurses-tinfo.patch 669 SHA256 6557a91b15516f823e0a4c1e8405a7801186c48e25dffc355c7524c65ab9e2e3 SHA512 46e43f1eef87a4a81cf812f7e576f0c7d8e867fcda6494a81aaf5c45609ae0b4ef4f21f671cfc4d763700ae2eb198c7c8d3d52de95ec0416f9b1e675077de2a1 WHIRLPOOL 716882d3366d28e539f46ecf30d36c0e9e77b5caf72fe2104e3dbc7a0a4941aba5213793f64beeeaa2946c4a89459e0711014026e3835c1d1e833fa1e0574567
+AUX wavemon-0.8.0-build.patch 945 SHA256 e15727d121b2e081a360984a53ee244559c7fa2838bad64e9aa096b04f9d5a10 SHA512 0c1463974431f51fea24ceb14de785012b89c7d8901d91a50979fdc07d2b11bf7980312b6006ec6f1d2bdaca768d2a947820b5fc6429d361dd6ad957b3798ac2 WHIRLPOOL 4331f574fd3797268151a8e53f575a1cc6e8653650497c60c5d3b4a86d029162fa1230c68adb045eff466cb5933307fb1a5fe08fe4ff3203326046f72569d439
+DIST wavemon-0.7.6.tar.bz2 116194 SHA256 de0c64fe5fa2d439417ca4fe0863c417ec59276a9c9aec5afac77f5edfa79ca1 SHA512 95f47204e50c1a44a2230e2d8cbed90d76e53f5e674f6f54f64ba6c99590c90213d9422e62951d55bcf4c8e2325e63e6a7c0c7d1b14a4120d5f0d291dc36cd68 WHIRLPOOL 2d3b9663b2fe0f9a513dda27c93c5ccad387c481b03f64b6d7b06d310736b517128a4921f70022d840444a293ad33576126681cf39162942c3a9b1037286c2ed
+DIST wavemon-0.8.0.tar.gz 196353 SHA256 81ee1f06f8349fee62e98ec5b53dff5b76c4d8fcb439f20cca806255239e3a2a SHA512 2df48eb300e9b30e0cb7a0ab41ba5e10b2a6e8170dbd11a4c978462c8cd6dc1171f79ceadfdb7344c495420a4e87b7dd723efea4f1af59a6d0312d93049ee798 WHIRLPOOL 196961a368e6eb0c0f512ac0a1fe80a14a4212127fc127af425e32689adcd5311167f59eac763420a80095619af403dc6f942d7ba1d3ed67f4ad6404dacb3658
+EBUILD wavemon-0.7.6.ebuild 1223 SHA256 3f4fb5cca335853bc4ff2f1ad14ba29d267db5e97f15cf4edf63f7489bd1871f SHA512 a56ccb77b64e60b488c4ce8e23b53238fcf6f38441fd27969cfc75c5ae9dc76e0305d56a84a50408a5e66eb8a9824ef8ae85127ca354f57519cb31b29d5ac11b WHIRLPOOL f41d1e1b094580b61e065e14183605c37eb6b29f3b768a2f409273b8e6fc79b0ea3af690298eb70129b5c7e7fcdb6e829f4ff3600a2fb24a91b0454c6b0762aa
+EBUILD wavemon-0.8.0.ebuild 1125 SHA256 c94bfb41c0e169832e927233fdf5789f1202a982c8bb4dbc9bc0f3f8ed1f388b SHA512 5ae69e57b572b0e4dcae964e3a53a7559e3e375b22a5b636dfd6b2b90f94b116fae047e17f1bd443fb2594c32aa816d481bdd87b6c1426ab83b45ce14c03fcb8 WHIRLPOOL 11e7fe66481abbaea82c7f4b0b2732fd9974cbdb260a10bf82c3715a7db97ff7f5fc1157af8ec6e40c731efbc4ae4f31ef1cb8fcbc94bcc49a3e1d09d3a14087
+MISC ChangeLog 2371 SHA256 58de3d7f5c4e2300c515b8fb2af1c7236d8cdd8adff4863cde32c30fe6e592c5 SHA512 656ff26d8082e6ec0f09218103e212d8bb55cabd0306db0f5c3efb7647b7806b42eecdc58ecb954c2aa6b075eb87bb9a43621824273ec79049db1223174d8989 WHIRLPOOL 0f8c28cea60f53d88db59dcc7fc4df0188ad36da142dd8357b010a4303ab0f1bfeb992fd63b8c9a86e42e439bd0fbbef5b3f0c8b94a048955bc8c99f36ee5661
+MISC ChangeLog-2015 8358 SHA256 3cbe03794d9bed8760a02fdfefed7eb6e3a2a6feeb95d7cac5d5dea0ea166e5a SHA512 e0fc01dfc721357a301b56345441743d3f6ba8d2221a761982b394ef72461168717622cb0951da298469fad7588fd5669a73e20e2b560a40e3ecb75e7d33411b WHIRLPOOL 51843d69ba6e59100e5a2b43798d3e49d64e6c2a1a2512f0662b32c61d15853bac4f7378b7b715c2dccd5c83e68c31fff758247cb4c6478f7c201ba08dc75ab5
+MISC metadata.xml 247 SHA256 fb925313d1ae70feaa6db91150f34a2157b48e884e8f47d773640af149e3744b SHA512 96c55c2979dd6a4c4761fce9b5a0be387b11fcf197ef903d8680ae82f01a2caea93b1238bed1ac96d3eb250744e2149a507e0424ac017b4324f0806a54e72c4a WHIRLPOOL 142b4295733faec48b0ca9eb6d3561799ff743481aabf2b74ecf6d717d972b4961979c7b6bf32b9840cb34e47d22fe2befb9b0ef8ec0d3f28f6416069128d3c7
diff --git a/net-wireless/wavemon/files/wavemon-0.6.7-dont-override-CFLAGS.patch b/net-wireless/wavemon/files/wavemon-0.6.7-dont-override-CFLAGS.patch
new file mode 100644
index 000000000000..df98db7cd590
--- /dev/null
+++ b/net-wireless/wavemon/files/wavemon-0.6.7-dont-override-CFLAGS.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -9,8 +9,6 @@
+ AC_DEFINE_UNQUOTED([BUILD_DATE], ["`/bin/date`"],
+ [date wavemon was last configured and built])
+
+-CFLAGS="-O2 -Wall"
+-
+ # wavemon is only supported on Linux, warn user about futile compilations
+ AC_CANONICAL_HOST
+ case "$host_os" in
diff --git a/net-wireless/wavemon/files/wavemon-0.7.6-ncurses-tinfo.patch b/net-wireless/wavemon/files/wavemon-0.7.6-ncurses-tinfo.patch
new file mode 100644
index 000000000000..e8d0af99587b
--- /dev/null
+++ b/net-wireless/wavemon/files/wavemon-0.7.6-ncurses-tinfo.patch
@@ -0,0 +1,19 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -21,6 +21,7 @@
+ AC_PROG_CC
+ AC_PROG_CPP
+ AC_PROG_INSTALL
++PKG_PROG_PKG_CONFIG
+
+ # Checks for header files.
+ AC_HEADER_STDC
+@@ -52,7 +53,7 @@
+
+ # Tests involving libraries
+ AC_CHECK_LIB([m], [pow], [], [AC_MSG_ERROR(math library not found)])
+-AC_CHECK_LIB([ncurses], [waddstr], [], [AC_MSG_ERROR(ncurses library not found)])
++PKG_CHECK_MODULES([ncurses], [ncurses], [LIBS="$LIBS $ncurses_LIBS"], AC_MSG_ERROR([ncurses is required but was not found]))
+ AC_CHECK_LIB([pthread], [pthread_create], [CFLAGS="$CFLAGS -pthread"],
+ [AC_MSG_ERROR(pthread library not found)])
+ AC_CHECK_LIB([cap], [cap_get_flag])
diff --git a/net-wireless/wavemon/files/wavemon-0.8.0-build.patch b/net-wireless/wavemon/files/wavemon-0.8.0-build.patch
new file mode 100644
index 000000000000..373b27e3e255
--- /dev/null
+++ b/net-wireless/wavemon/files/wavemon-0.8.0-build.patch
@@ -0,0 +1,33 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -15,8 +15,6 @@
+ AC_DEFINE_UNQUOTED([BUILD_DATE], ["`/bin/date`"],
+ [date wavemon was last configured and built])
+
+-CFLAGS="-O2 -Wall"
+-
+ # wavemon is only supported on Linux, warn user about futile compilations
+ AC_CANONICAL_HOST
+ case "$host_os" in
+diff -uarN a/Makefile.in b/Makefile.in
+--- a/Makefile.in 2017-07-14 21:35:18.154423280 +0300
++++ b/Makefile.in 2017-07-14 21:35:34.613402738 +0300
+@@ -9,7 +9,7 @@
+ install-suid-root: exec_perms = 4755
+
+ CC ?= @CC@
+-CFLAGS ?= @CFLAGS@ @LIBNL3_CFLAGS@
++CFLAGS = @CFLAGS@ @LIBNL3_CFLAGS@
+ CPPFLAGS ?= @CPPFLAGS@
+ LDFLAGS ?= @LDFLAGS@
+ DEFS ?= @DEFS@
+@@ -25,8 +25,7 @@
+ DOCS = README.md NEWS THANKS AUTHORS COPYING ChangeLog
+
+ %.o: %.c $(HEADERS)
+- @echo ' CC ' $<
+- @$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(DEFS) -c -o $@ $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(DEFS) -c -o $@ $<
+
+ all: @PACKAGE_NAME@
+ @PACKAGE_NAME@: $(MAIN) $(OBJS)
diff --git a/net-wireless/wavemon/metadata.xml b/net-wireless/wavemon/metadata.xml
new file mode 100644
index 000000000000..5b159fbcadd1
--- /dev/null
+++ b/net-wireless/wavemon/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 type="person">
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-wireless/wavemon/wavemon-0.7.6.ebuild b/net-wireless/wavemon/wavemon-0.7.6.ebuild
new file mode 100644
index 000000000000..7ec63ce5a34d
--- /dev/null
+++ b/net-wireless/wavemon/wavemon-0.7.6.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+inherit autotools-utils flag-o-matic toolchain-funcs
+
+DESCRIPTION="Ncurses based monitor for IEEE 802.11 wireless LAN cards"
+HOMEPAGE="http://eden-feed.erg.abdn.ac.uk/wavemon/"
+SRC_URI="http://eden-feed.erg.abdn.ac.uk/wavemon/stable-releases/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 arm hppa ppc sparc x86"
+
+IUSE="caps"
+RDEPEND="sys-libs/ncurses
+ caps? ( sys-libs/libcap )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog NEWS README THANKS )
+PATCHES=(
+ "${FILESDIR}/${PN}-0.6.7-dont-override-CFLAGS.patch"
+ "${FILESDIR}/${P}-ncurses-tinfo.patch"
+)
+
+src_prepare() {
+ # Do not install docs to /usr/share
+ sed -i -e '/^install:/s/install-docs//' Makefile.in || die 'sed on Makefile.in failed'
+
+ # automagic on libcap, discovered in bug #448406
+ use caps || export ac_cv_lib_cap_cap_get_flag=false
+
+ # Respect CC, fix linking
+ tc-export CC
+ append-ldflags -pthread
+
+ autotools-utils_src_prepare
+}
+
+src_install() {
+ autotools-utils_src_install
+ # Install man files manually(bug #397807)
+ doman wavemon.1
+ doman wavemonrc.5
+}
diff --git a/net-wireless/wavemon/wavemon-0.8.0.ebuild b/net-wireless/wavemon/wavemon-0.8.0.ebuild
new file mode 100644
index 000000000000..41c777d9a084
--- /dev/null
+++ b/net-wireless/wavemon/wavemon-0.8.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="Ncurses based monitor for IEEE 802.11 wireless LAN cards"
+HOMEPAGE="https://github.com/uoaerg/wavemon/"
+SRC_URI="https://github.com/uoaerg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
+
+IUSE="caps"
+RDEPEND="dev-libs/libnl:3
+ sys-libs/ncurses:0=
+ caps? ( sys-libs/libcap )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS ChangeLog NEWS README.md THANKS )
+PATCHES=(
+ "${FILESDIR}/${PN}-0.7.6-ncurses-tinfo.patch"
+ "${FILESDIR}/${PN}-0.8.0-build.patch"
+)
+
+src_prepare() {
+ # Do not install docs to /usr/share
+ sed -i -e '/^install:/s/install-docs//' Makefile.in || die 'sed on Makefile.in failed'
+
+ # automagic on libcap, discovered in bug #448406
+ use caps || export ac_cv_lib_cap_cap_get_flag=false
+
+ # Respect CC
+ tc-export CC
+
+ default_src_prepare
+ eautoreconf
+}
+
+src_install() {
+ default_src_install
+ # Install man files manually(bug #397807)
+ doman wavemon.1
+ doman wavemonrc.5
+}