[arch-commits] Commit in nmap/repos (6 files)
Gaetan Bisson
bisson at archlinux.org
Wed Nov 14 02:29:59 UTC 2012
Date: Tuesday, November 13, 2012 @ 21:29:59
Author: bisson
Revision: 170955
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
nmap/repos/staging-i686/
nmap/repos/staging-i686/PKGBUILD
(from rev 170954, nmap/trunk/PKGBUILD)
nmap/repos/staging-i686/kdesu.patch
(from rev 170954, nmap/trunk/kdesu.patch)
nmap/repos/staging-x86_64/
nmap/repos/staging-x86_64/PKGBUILD
(from rev 170954, nmap/trunk/PKGBUILD)
nmap/repos/staging-x86_64/kdesu.patch
(from rev 170954, nmap/trunk/kdesu.patch)
----------------------------+
staging-i686/PKGBUILD | 44 +++++++++++++++++++++++++++++++++++++++++++
staging-i686/kdesu.patch | 14 +++++++++++++
staging-x86_64/PKGBUILD | 44 +++++++++++++++++++++++++++++++++++++++++++
staging-x86_64/kdesu.patch | 14 +++++++++++++
4 files changed, 116 insertions(+)
Copied: nmap/repos/staging-i686/PKGBUILD (from rev 170954, nmap/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2012-11-14 02:29:59 UTC (rev 170955)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Hugo Doria <hugo at archlinux.org>
+
+pkgname=nmap
+pkgver=6.01
+pkgrel=3
+pkgdesc='Utility for network discovery and security auditing'
+url='http://nmap.org/'
+arch=('i686' 'x86_64')
+license=('GPL')
+makedepends=('pygtk')
+optdepends=('pygtk: zenmap')
+depends=('pcre' 'openssl' 'libpcap' 'lua51')
+source=("http://nmap.org/dist/${pkgname}-${pkgver}.tar.bz2"
+ 'kdesu.patch')
+sha1sums=('e397e453893930d14e9bb33a847d15b94b7ee83a'
+ '159bc1243564d3a9dee820291bf07168870cbaf6')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Show icon only if runnable; see FS#12045
+ echo 'TryExec=/usr/bin/pygtk-demo' >> zenmap/install_scripts/unix/zenmap.desktop
+ echo 'TryExec=/usr/bin/pygtk-demo' >> zenmap/install_scripts/unix/zenmap-root.desktop
+
+ patch -p1 -i ../kdesu.patch # FS#31158
+
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --mandir=/usr/share/man \
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ rm "${pkgdir}"/usr/bin/uninstall_zenmap
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
Copied: nmap/repos/staging-i686/kdesu.patch (from rev 170954, nmap/trunk/kdesu.patch)
===================================================================
--- staging-i686/kdesu.patch (rev 0)
+++ staging-i686/kdesu.patch 2012-11-14 02:29:59 UTC (rev 170955)
@@ -0,0 +1,14 @@
+diff -Naur old/zenmap/install_scripts/unix/su-to-zenmap.sh new/zenmap/install_scripts/unix/su-to-zenmap.sh
+--- old/zenmap/install_scripts/unix/su-to-zenmap.sh 2012-08-17 18:34:05.863827354 +1000
++++ new/zenmap/install_scripts/unix/su-to-zenmap.sh 2012-08-17 18:35:53.872952226 +1000
+@@ -40,8 +40,8 @@
+ fi
+ case $SU_TO_ROOT_X in
+ gksu) gksu -u "$PRIV" "$COMMAND";;
+- kdesu) kdesu -u "$PRIV" "$COMMAND";;
+- kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" "$COMMAND";;
++ kdesu) kdesu -u "$PRIV" -c "$COMMAND";;
++ kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" -c "$COMMAND";;
+ ktsuss) ktsuss -u "$PRIV" "$COMMAND";;
+ # As a last resort, open a new xterm use sudo/su
+ sdterm) xterm -e "sudo -u $PRIV $COMMAND";;
Copied: nmap/repos/staging-x86_64/PKGBUILD (from rev 170954, nmap/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2012-11-14 02:29:59 UTC (rev 170955)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Gaetan Bisson <bisson at archlinux.org>
+# Contributor: Angel Velasquez <angvp at archlinux.org>
+# Contributor: Hugo Doria <hugo at archlinux.org>
+
+pkgname=nmap
+pkgver=6.01
+pkgrel=3
+pkgdesc='Utility for network discovery and security auditing'
+url='http://nmap.org/'
+arch=('i686' 'x86_64')
+license=('GPL')
+makedepends=('pygtk')
+optdepends=('pygtk: zenmap')
+depends=('pcre' 'openssl' 'libpcap' 'lua51')
+source=("http://nmap.org/dist/${pkgname}-${pkgver}.tar.bz2"
+ 'kdesu.patch')
+sha1sums=('e397e453893930d14e9bb33a847d15b94b7ee83a'
+ '159bc1243564d3a9dee820291bf07168870cbaf6')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # Show icon only if runnable; see FS#12045
+ echo 'TryExec=/usr/bin/pygtk-demo' >> zenmap/install_scripts/unix/zenmap.desktop
+ echo 'TryExec=/usr/bin/pygtk-demo' >> zenmap/install_scripts/unix/zenmap-root.desktop
+
+ patch -p1 -i ../kdesu.patch # FS#31158
+
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --mandir=/usr/share/man \
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ rm "${pkgdir}"/usr/bin/uninstall_zenmap
+ install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
Copied: nmap/repos/staging-x86_64/kdesu.patch (from rev 170954, nmap/trunk/kdesu.patch)
===================================================================
--- staging-x86_64/kdesu.patch (rev 0)
+++ staging-x86_64/kdesu.patch 2012-11-14 02:29:59 UTC (rev 170955)
@@ -0,0 +1,14 @@
+diff -Naur old/zenmap/install_scripts/unix/su-to-zenmap.sh new/zenmap/install_scripts/unix/su-to-zenmap.sh
+--- old/zenmap/install_scripts/unix/su-to-zenmap.sh 2012-08-17 18:34:05.863827354 +1000
++++ new/zenmap/install_scripts/unix/su-to-zenmap.sh 2012-08-17 18:35:53.872952226 +1000
+@@ -40,8 +40,8 @@
+ fi
+ case $SU_TO_ROOT_X in
+ gksu) gksu -u "$PRIV" "$COMMAND";;
+- kdesu) kdesu -u "$PRIV" "$COMMAND";;
+- kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" "$COMMAND";;
++ kdesu) kdesu -u "$PRIV" -c "$COMMAND";;
++ kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" -c "$COMMAND";;
+ ktsuss) ktsuss -u "$PRIV" "$COMMAND";;
+ # As a last resort, open a new xterm use sudo/su
+ sdterm) xterm -e "sudo -u $PRIV $COMMAND";;
More information about the arch-commits
mailing list