summaryrefslogtreecommitdiff
path: root/net-misc
diff options
context:
space:
mode:
authorBertrand Jacquin <beber@meleeweb.net>2014-05-03 13:00:15 +0200
committerBertrand Jacquin <beber@meleeweb.net>2014-05-03 15:20:46 +0200
commitd5c77147971a3b49eda4c74aaa235483ab1ae5df (patch)
treedc185f5afdcbf3f1b525a2e9b0a10010d3ecb2fa /net-misc
parentmetadata: refresh cache (diff)
downloadportage-d5c77147971a3b49eda4c74aaa235483ab1ae5df.tar.xz
winexe: Move to net-misc
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/winexe/ChangeLog47
-rw-r--r--net-misc/winexe/Manifest7
-rw-r--r--net-misc/winexe/files/1.00-NT_STATUS_SERVICE_DOES_NOT_EXIST.patch11
-rw-r--r--net-misc/winexe/files/9999-BUG-MEDIUM-Fix-NT_STATUS_SERVICE_DOES_NOT_EXIST-defi.patch29
-rw-r--r--net-misc/winexe/metadata.xml8
-rw-r--r--net-misc/winexe/winexe-1.00.ebuild41
-rw-r--r--net-misc/winexe/winexe-9999.ebuild74
7 files changed, 217 insertions, 0 deletions
diff --git a/net-misc/winexe/ChangeLog b/net-misc/winexe/ChangeLog
new file mode 100644
index 00000000..74d2c1fb
--- /dev/null
+++ b/net-misc/winexe/ChangeLog
@@ -0,0 +1,47 @@
+# ChangeLog for sys-apps/winexe
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 28 Apr 2014; Bertrand Jacquin <beber@meleeweb.net> winexe-9999.ebuild:
+ sys-apps/winexe: Fix MINGW32_VARIANT, replace i486 with i586
+
+ 27 Apr 2014; Bertrand Jacquin <beber@meleeweb.net>
+ +files/1.00-NT_STATUS_SERVICE_DOES_NOT_EXIST.patch, -files/filesdir.patch,
+ winexe-1.00.ebuild:
+ sys-apps/winexe: Rename 1.00 patch
+
+*winexe-9999 (27 Apr 2014)
+
+ 27 Apr 2014; Bertrand Jacquin <beber@meleeweb.net>
+ +files/9999-BUG-MEDIUM-Fix-NT_STATUS_SERVICE_DOES_NOT_EXIST-defi.patch,
+ +winexe-9999.ebuild:
+ sys-apps/winexe: Add live ebuild from git, use WAF build system, remove non
+ necessary gnutls USE flag, remove non necessary net-libs/gnutls and dev-libs
+ /cyrus-sasl DEPEND, mingw (32 and 64) are needed to build, so pkg_pretend() to
+ find them, refresh NT_STATUS_SERVICE_DOES_NOT_EXIST patch to valid one
+
+ 15 Jun 2013; Bertrand Jacquin <beber@meleeweb.net> winexe-1.00.ebuild:
+ sys-apps/winexe: remove unneeded die()
+
+ 10 Jun 2013; Bertrand Jacquin <beber@meleeweb.net> metadata.xml:
+ Fix manifest
+
+ 08 Jun 2013; Bertrand Jacquin <beber@meleeweb.net> -winexe-0.91.ebuild,
+ winexe-1.00.ebuild:
+ sys-apps/winexe: Remove old, move to EAPI 5
+
+ 29 May 2013; Bertrand Jacquin <beber@meleeweb.net> winexe-0.91.ebuild,
+ winexe-1.00.ebuild:
+ Fix ebuild headers
+
+ 28 May 2013; Bertrand Jacquin <beber@meleeweb.net> +metadata.xml:
+ Add missing metadata.xml
+
+*winexe-1.00 (27 May 2013)
+*winexe-0.91 (27 May 2013)
+
+ 27 May 2013; Bertrand Jacquin <beber@meleeweb.net> +files/filesdir.patch,
+ +winexe-0.91.ebuild, +winexe-1.00.ebuild:
+ sys-apps: Add winexe 0.91 and 1.00
+
+ http://sourceforge.net/projects/winexe/
diff --git a/net-misc/winexe/Manifest b/net-misc/winexe/Manifest
new file mode 100644
index 00000000..09b9996d
--- /dev/null
+++ b/net-misc/winexe/Manifest
@@ -0,0 +1,7 @@
+AUX 1.00-NT_STATUS_SERVICE_DOES_NOT_EXIST.patch 505 SHA256 bac1d7e1ac0b81a35e3edc8bc24718b8d31913a79b7c860001e60de73e3c736b WHIRLPOOL 9f3b30ad5be4f4e2e4c16711d36f906796eb449bbbad94267e92add23ed7ec8f39c90f2cacdd4129b54b8b304453c4cf844e98137447d15c2aff1d1099b7435f
+AUX 9999-BUG-MEDIUM-Fix-NT_STATUS_SERVICE_DOES_NOT_EXIST-defi.patch 1250 SHA256 79c98e41d1ac40c4eb86acba190fde4b856947edc60611d3b385dcd6d4302c3a WHIRLPOOL e326533e052e1e2b31088aad0be1e9717c25f90c8f2a6a6ace4bac8150ff63df6683fdff5d422cce1ff9fbf47f06f0ae3f06f4769ff9ace6b5fb230ffb12d79d
+DIST winexe-1.00.tar.gz 21931368 SHA256 99238bd3e1c0637041c737c86a05bd73a9375abc9794dca71d2765e22d87537e WHIRLPOOL 84fc03e1e683dbf7272f9362acd59649643389cbe535d0d00eae4a472326fe49268f2ac7e3c2d3f307ea62b09113d5212540a89adcdcd4b17d42a3461d9bca0b
+EBUILD winexe-1.00.ebuild 790 SHA256 e1cc2bd75ba711a78781d7f28f623831887a11b4bcf3d26eaa6a406a57c614df WHIRLPOOL 42188ebad37c622b88b87cf08e638b0e35da96914c4318eecf35cd3f5826f8fa4e6bb402128f333abf660815ec3b4a74c82af1f2bf4a3d3e4b7b18bf59ac8765
+EBUILD winexe-9999.ebuild 1718 SHA256 2db75f8cc60ce824e0bf54cad3ba62439a2565ccf14a12571921b25da81dcd77 WHIRLPOOL 4f5a44ad0c5c10a4260c456ce09256074135b0d491429aa2efeee6acb3f3dd51d3110f3e9faa9243f0fbc8d9f5b62b82cb9c92ec89bcd310d96382bad7e8d6fd
+MISC ChangeLog 1742 SHA256 be47058c3814cb2e676f62c1c2e6643d0c926f73c025ee14ca4d792ae41e40a3 WHIRLPOOL bbdbc3a3a8afef1e10cba7dd7caea9678716605d8ef9d9b16209e3ffaaf4260a087b0e9e0da9d163b3c4e18984f722297b400e5437772aa679f272d18696ed96
+MISC metadata.xml 254 SHA256 c56bc3d6780712c960298c70bb86867aeb6661e97a317cc624516b0e16b72fcc WHIRLPOOL 2ebbfaa14ef0c1847284fe64a79f052cd7e73b25a724fba728c084aaaf2dd0692e068eedcf42ccef7e205077f00c35780ded7ec69118dc01ddb988b4802e46ae
diff --git a/net-misc/winexe/files/1.00-NT_STATUS_SERVICE_DOES_NOT_EXIST.patch b/net-misc/winexe/files/1.00-NT_STATUS_SERVICE_DOES_NOT_EXIST.patch
new file mode 100644
index 00000000..d9683893
--- /dev/null
+++ b/net-misc/winexe/files/1.00-NT_STATUS_SERVICE_DOES_NOT_EXIST.patch
@@ -0,0 +1,11 @@
+--- winexe/service.c.original 2010-09-08 12:57:03.000000000 +0200
++++ winexe/service.c 2010-09-08 12:57:36.000000000 +0200
+@@ -15,7 +15,7 @@
+ #define SERVICE_DEMAND_START (0x00000003)
+ #define SERVICE_ERROR_NORMAL (0x00000001)
+ #define SERVICE_CONTROL_STOP (0x00000001)
+-#define NT_STATUS_SERVICE_DOES_NOT_EXIST NT_STATUS(0xc0000424)
++#define NT_STATUS_SERVICE_DOES_NOT_EXIST NT_STATUS(0xc00000424)
+ #include "system/filesys.h"
+ #include "libcli/libcli.h"
+ #include "libcli/smb_composite/smb_composite.h"
diff --git a/net-misc/winexe/files/9999-BUG-MEDIUM-Fix-NT_STATUS_SERVICE_DOES_NOT_EXIST-defi.patch b/net-misc/winexe/files/9999-BUG-MEDIUM-Fix-NT_STATUS_SERVICE_DOES_NOT_EXIST-defi.patch
new file mode 100644
index 00000000..4168cf1d
--- /dev/null
+++ b/net-misc/winexe/files/9999-BUG-MEDIUM-Fix-NT_STATUS_SERVICE_DOES_NOT_EXIST-defi.patch
@@ -0,0 +1,29 @@
+From 48a6ff7243d8b72fabe827df2179b400b4fba7ec Mon Sep 17 00:00:00 2001
+From: Bertrand Jacquin <beber@meleeweb.net>
+Date: Sun, 27 Apr 2014 23:10:34 +0200
+Subject: [PATCH] BUG/MEDIUM: Fix NT_STATUS_SERVICE_DOES_NOT_EXIST definition
+
+Avoiding error like:
+ [winexe/winexe.c:120:on_ctrl_pipe_error()] ERROR: Failed to install service winexesvc - NT code 0x00000424
+
+See also: http://infosys.beckhoff.com/index.php?content=../content/1031/tcdiagnostics/html/tcdiagnostics_win32_errorcodes.htm&id=
+---
+ source/svcinstall.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/source/svcinstall.c b/source/svcinstall.c
+index 06848cc..a97de0d 100644
+--- a/source/svcinstall.c
++++ b/source/svcinstall.c
+@@ -30,7 +30,7 @@
+ #define SERVICE_DEMAND_START (0x00000003)
+ #define SERVICE_ERROR_NORMAL (0x00000001)
+ #define SERVICE_CONTROL_STOP (0x00000001)
+-#define NT_STATUS_SERVICE_DOES_NOT_EXIST NT_STATUS(0xc0000424)
++#define NT_STATUS_SERVICE_DOES_NOT_EXIST NT_STATUS(0x00000424)
+
+ #define NT_ERR(status, lvl, args...) if (!NT_STATUS_IS_OK(status)) { DEBUG(lvl,("ERROR: " args)); DEBUG(lvl,(". %s.\n", nt_errstr(status))); return status; }
+ #define NT_RES(status, werr) (NT_STATUS_IS_OK(status) ? werror_to_ntstatus(werr) : status)
+--
+1.8.3.2
+
diff --git a/net-misc/winexe/metadata.xml b/net-misc/winexe/metadata.xml
new file mode 100644
index 00000000..933498d8
--- /dev/null
+++ b/net-misc/winexe/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>
+ <email>beber@meleeweb.net</email>
+ <name>Bertrand Jacquin</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-misc/winexe/winexe-1.00.ebuild b/net-misc/winexe/winexe-1.00.ebuild
new file mode 100644
index 00000000..28c8ffa3
--- /dev/null
+++ b/net-misc/winexe/winexe-1.00.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+inherit eutils flag-o-matic
+
+DESCRIPTION="winexe remotely executes commands on WindowsNT/2000/XP/2003 systems"
+HOMEPAGE="http://sourceforge.net/projects/winexe"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnutls"
+
+DEPEND="dev-libs/cyrus-sasl
+ gnutls? ( net-libs/gnutls )
+ dev-libs/popt"
+RDEPEND="${DEPEND}"
+
+S="${S}/source4"
+
+src_prepare () {
+ epatch "${FILESDIR}/${PV}-NT_STATUS_SERVICE_DOES_NOT_EXIST.patch"
+}
+
+src_configure () {
+ ./autogen.sh || die "autogen failed"
+ econf \
+ --enable-fhs \
+ $(use_enable gnutls)
+}
+
+src_compile() {
+ emake basics bin/winexe
+}
+
+src_install() {
+ dobin bin/winexe
+}
diff --git a/net-misc/winexe/winexe-9999.ebuild b/net-misc/winexe/winexe-9999.ebuild
new file mode 100644
index 00000000..231bea8d
--- /dev/null
+++ b/net-misc/winexe/winexe-9999.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+inherit eutils waf-utils git-r3
+
+DESCRIPTION="winexe remotely executes commands on WindowsNT/2000/XP/2003 systems"
+HOMEPAGE="http://sourceforge.net/projects/winexe"
+EGIT_REPO_URI="git://git.code.sf.net/p/winexe/winexe-waf"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND=">=net-fs/samba-4
+ dev-libs/popt"
+RDEPEND="${DEPEND}"
+
+S="${S}/source"
+
+pkg_pretend () {
+ # From source/wscript
+ # AR32 = ['i386', 'i586', 'i686']
+ # AR64 = ['x86_64', 'amd64']
+ # TC = ['mingw32', 'mingw32msvc', 'w64-mingw32']
+ MINGW32_VARIANT=( i{3,5,6}86-{w64-,}mingw32 )
+ MINGW64_VARIANT=( x86_64-{w64-,}mingw32 )
+
+ local tc
+
+ for tc in ${MINGW32_VARIANT[@]} ; do
+ if type -p "${tc}-gcc" > /dev/null ; then
+ MINGW32_CC="${tc}"
+ break
+ fi
+ done
+
+ for tc in ${MINGW64_VARIANT[@]} ; do
+ if type -p "${tc}-gcc" > /dev/null ; then
+ MINGW64_CC="${tc}"
+ break
+ fi
+ done
+
+ if [[ -z "${MINGW32_CC}" || -z "${MINGW64_CC}" ]] ; then
+ eerror "Before you could emerge ${PN}, you need to install mingw"
+ eerror "Run the following commands:"
+ eerror " emerge crossdev"
+ eerror " crossdev --stable --libc '[latest]' -t i686-w64-mingw32"
+ eerror " crossdev --stable --libc '[latest]' -t x86_64-w64-mingw32"
+ die "mingw environnement not available"
+ fi
+
+ return 0
+}
+
+src_prepare () {
+ epatch "${FILESDIR}/${PV}-BUG-MEDIUM-Fix-NT_STATUS_SERVICE_DOES_NOT_EXIST-defi.patch"
+}
+
+src_configure () {
+ NO_WAF_LIBDIR=yes \
+ waf-utils_src_configure \
+ --samba-inc-dirs="${EROOT}usr/include/samba-4.0" \
+ --samba-lib-dirs="${EROOT}usr/$(get_libdir)/samba"
+}
+
+src_install () {
+ waf-utils_src_install
+
+ dodoc ../README
+}