summaryrefslogtreecommitdiff
path: root/net-wireless
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/linssid/Manifest1
-rw-r--r--net-wireless/linssid/linssid-2.7.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/net-wireless/linssid/Manifest b/net-wireless/linssid/Manifest
index a3a430be..71f18269 100644
--- a/net-wireless/linssid/Manifest
+++ b/net-wireless/linssid/Manifest
@@ -1 +1,2 @@
DIST linssid_2.1.orig.tar.gz 235899 SHA256 dd333937898503adc27a0d1d99785cdc8da311abfde5153363dc680141735bfd SHA512 256d2d7eb58011ce09e64da675cc4824cbe2f1ee445357dcff27431d1957bee2c86e04051a1b8b4902fd839f7ccf65971dc7be489aae4fb9798a1844ce449e83 WHIRLPOOL 58d564e4d469ff12a650320bc178b0c673d6b133a442ed25dbb4b4c09571f6b4b2dbc2c5435d541fc9defe51919a6e3f26b7177e6c8fa96c0a07393741e37fdb
+DIST linssid_2.7.orig.tar.gz 678725 SHA256 f491956427d4f061752fda9aeb4a935de8887ab26fc2393a458d59c9682ea38d SHA512 33e69b0491bee74453cb71befb3a314da7766f12d2c1a21e947cf1d068b2941162eb72ab53989d9e5e5e2c8f2dd051576d0bfb775835d648eb9b1fc8b046a0cb WHIRLPOOL 04f2154cac5484a93a2c883286d8de4503a7b736b6182b669cc1cbab0b7a7c629c760847d0b3d700674a465fe4d59208c8cf0528dd8b94cb0a3a486a5ace518a
diff --git a/net-wireless/linssid/linssid-2.7.ebuild b/net-wireless/linssid/linssid-2.7.ebuild
new file mode 100644
index 00000000..30a09b5d
--- /dev/null
+++ b/net-wireless/linssid/linssid-2.7.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit qt4-r2
+
+DESCRIPTION="Graphical wireless scanning for Linux "
+HOMEPAGE="http://sourceforge.net/projects/linssid/"
+SRC_URI="http://downloads.sourceforge.net/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-libs/boost
+ dev-qt/qtgui:4
+ net-wireless/wireless-tools
+ >=x11-libs/qwt-6
+ "
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ # fix hard-coded gcc version
+ sed -i 's/gcc-4\.6/gcc/' linssid.pro
+ sed -i 's/g++-4\.6/g++/' linssid.pro
+
+ # get and use QWT version
+ QWT_VERSION="$(best_version x11-libs/qwt | cut -d "-" -f3 | cut -d "." -f1)"
+ sed -i "s/\/usr\/include\/qwt/\/usr\/include\/qwt${QWT_VERSION}/g" linssid.pro || die
+ sed -i "s/\/usr\/lib\/libqwt.so/-lqwt${QWT_VERSION}/g" linssid.pro || die
+
+ sed -i 's/\/usr\/lib\/libboost_regex-mt\.a/-lboost_regex/' linssid.pro || die
+
+ # use uniform include style for qwt
+ sed -i "s/#include <qwt\//#include </" *.h || die
+
+ # fix QA warnings
+ sed -i "s/Version=.*//" linssid.desktop || die
+ sed -i "s/Categories=.*/Categories=Network;/" linssid.desktop || die
+}
+
+pkg_postinst() {
+ elog "This package parses the output of "iw" and needs root privileges"
+ elog "to do so. You can either start it as root or set up sudo"
+ elog "rights (recommended)."
+}