summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-08-28 22:43:50 +0000
committerMike Frysinger <vapier@gentoo.org>2011-08-28 22:43:50 +0000
commit35894c625255f71323e0ddd4f344d210acf95458 (patch)
tree5792188e2df1ac4762eabe81e9e306324d5183bb /app-admin
parentMarked stable on AMD64 based on arch testing by Agostino "ago" Sarubbo in bug... (diff)
downloadgentoo-2-35894c625255f71323e0ddd4f344d210acf95458.tar.gz
gentoo-2-35894c625255f71323e0ddd4f344d210acf95458.tar.bz2
gentoo-2-35894c625255f71323e0ddd4f344d210acf95458.zip
Clean up EAPI clean up #380249 by Michael. Add patch to fix up missing header includes fo func prototypes.
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/socklog/ChangeLog7
-rw-r--r--app-admin/socklog/files/socklog-2.1.0-headers.patch54
-rw-r--r--app-admin/socklog/socklog-2.1.0.ebuild16
3 files changed, 66 insertions, 11 deletions
diff --git a/app-admin/socklog/ChangeLog b/app-admin/socklog/ChangeLog
index 600117c34611..32cba1c7366f 100644
--- a/app-admin/socklog/ChangeLog
+++ b/app-admin/socklog/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-admin/socklog
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/socklog/ChangeLog,v 1.10 2011/06/15 02:47:18 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/socklog/ChangeLog,v 1.11 2011/08/28 22:43:50 vapier Exp $
+
+ 28 Aug 2011; Mike Frysinger <vapier@gentoo.org> socklog-2.1.0.ebuild,
+ +files/socklog-2.1.0-headers.patch:
+ Clean up EAPI clean up #380249 by Michael. Add patch to fix up missing header
+ includes fo func prototypes.
15 Jun 2011; Jeroen Roovers <jer@gentoo.org> -socklog-2.0.2.ebuild,
-socklog-2.0.2-r1.ebuild, -files/socklog-2.0.2-tryto-race-fix.patch:
diff --git a/app-admin/socklog/files/socklog-2.1.0-headers.patch b/app-admin/socklog/files/socklog-2.1.0-headers.patch
new file mode 100644
index 000000000000..b7c10e3da606
--- /dev/null
+++ b/app-admin/socklog/files/socklog-2.1.0-headers.patch
@@ -0,0 +1,54 @@
+add missing headers for misc funcs and types
+
+--- a/chkshsgr.c
++++ b/chkshsgr.c
+@@ -1,10 +1,11 @@
+ /* Public domain. */
+
+ #include <unistd.h>
++#include <grp.h>
+
+ int main()
+ {
+- short x[4];
++ gid_t x[4];
+
+ x[0] = x[1] = 0;
+ if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
+--- a/pathexec_run.c
++++ b/pathexec_run.c
+@@ -1,5 +1,6 @@
+ /* Public domain. */
+
++#include <unistd.h>
+ #include "error.h"
+ #include "stralloc.h"
+ #include "str.h"
+--- a/prot.c
++++ b/prot.c
+@@ -1,12 +1,15 @@
+ /* Public domain. */
+
++#include <unistd.h>
++#include <grp.h>
++
+ #include "hasshsgr.h"
+ #include "prot.h"
+
+ int prot_gid(int gid)
+ {
+ #ifdef HASSHORTSETGROUPS
+- short x[2];
++ gid_t x[2];
+ x[0] = gid; x[1] = 73; /* catch errors */
+ if (setgroups(1,x) == -1) return -1;
+ #else
+--- a/seek_set.c
++++ b/seek_set.c
+@@ -1,5 +1,6 @@
+ /* Public domain. */
+
++#include <unistd.h>
+ #include <sys/types.h>
+ #include "seek.h"
+
diff --git a/app-admin/socklog/socklog-2.1.0.ebuild b/app-admin/socklog/socklog-2.1.0.ebuild
index 4194b029685a..26116a45cfbb 100644
--- a/app-admin/socklog/socklog-2.1.0.ebuild
+++ b/app-admin/socklog/socklog-2.1.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/socklog/socklog-2.1.0.ebuild,v 1.1 2011/06/15 02:43:32 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/socklog/socklog-2.1.0.ebuild,v 1.2 2011/08/28 22:43:50 vapier Exp $
EAPI="3"
@@ -20,21 +20,17 @@ RDEPEND=">=sys-process/runit-1.4.0"
S=${WORKDIR}/admin/${P}/src
src_prepare() {
-# epatch "${FILESDIR}"/${P}-tryto-race-fix.patch #122784
+ epatch "${FILESDIR}"/${PN}-2.1.0-headers.patch
use static && append-ldflags -static
- echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${CFLAGS} ${CPPFLAGS}" > conf-cc
echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS}" > conf-ld
}
-src_compile() {
- emake || die "make failed"
-}
-
src_install() {
- dobin tryto uncat socklog-check || die "dobin"
- dosbin socklog socklog-conf || die "dosbin"
+ dobin tryto uncat socklog-check || die
+ dosbin socklog socklog-conf || die
- cd "${S}"
+ cd ..
dodoc package/CHANGES
dohtml doc/*.html
doman man/*