summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-05-13 12:46:31 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-05-13 12:46:31 +0000
commit0e9a575ab57679be2f7724adbe2775b3b6472f4e (patch)
tree331f6354429793e4dd9204cfda11f010d5060dc2 /sys-apps/dog
parentinvalid headers patch added (diff)
downloadhistorical-0e9a575ab57679be2f7724adbe2775b3b6472f4e.tar.gz
historical-0e9a575ab57679be2f7724adbe2775b3b6472f4e.tar.bz2
historical-0e9a575ab57679be2f7724adbe2775b3b6472f4e.zip
Revision bump; added patch to fix missing check on ctime return value (was using strcpy(buf, ctime(...))). Also use socklen_t over int as it should be (fixes gcc-4 warning as well).
Package-Manager: portage-2.0.51.21-r1
Diffstat (limited to 'sys-apps/dog')
-rw-r--r--sys-apps/dog/ChangeLog10
-rw-r--r--sys-apps/dog/Manifest11
-rw-r--r--sys-apps/dog/dog-1.7-r1.ebuild31
-rw-r--r--sys-apps/dog/files/digest-dog-1.7-r11
-rw-r--r--sys-apps/dog/files/dog-1.7-check-ctime.diff53
5 files changed, 101 insertions, 5 deletions
diff --git a/sys-apps/dog/ChangeLog b/sys-apps/dog/ChangeLog
index 02096d09c28d..a308a5a3f94f 100644
--- a/sys-apps/dog/ChangeLog
+++ b/sys-apps/dog/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-apps/dog
# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/dog/ChangeLog,v 1.11 2005/03/28 20:01:38 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/dog/ChangeLog,v 1.12 2005/05/13 12:46:31 ka0ttic Exp $
+
+*dog-1.7-r1 (13 May 2005)
+
+ 13 May 2005; Aaron Walker <ka0ttic@gentoo.org>
+ +files/dog-1.7-check-ctime.diff, +dog-1.7-r1.ebuild:
+ Revision bump; added patch to fix missing check on ctime return value (was
+ using strcpy(buf, ctime(...))). Also use socklen_t over int as it should be
+ (fixes gcc-4 warning as well).
28 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> metadata.xml:
Move from base-system to shell-tools
diff --git a/sys-apps/dog/Manifest b/sys-apps/dog/Manifest
index b4bcfcbd3b92..a52f0a369be0 100644
--- a/sys-apps/dog/Manifest
+++ b/sys-apps/dog/Manifest
@@ -2,14 +2,17 @@
Hash: SHA1
MD5 8a5838fdfc978d8897bc8fd905a6d243 dog-1.7.ebuild 694
-MD5 75f2e62e2a2b30bf8d191575b2e7c7b4 ChangeLog 1322
+MD5 224f96a6351e4c5c64db83857c58d6be dog-1.7-r1.ebuild 768
+MD5 5be589fe97817051c65cf582ef01e71a ChangeLog 1642
MD5 99ce5509db4b50f28a1f6675f8c09b2b metadata.xml 258
MD5 39566b62f641a9ca7555f7bbea2878d9 files/1.7-manpage-touchup.patch 498
+MD5 d3467d0ce8367b6b549f383382437b24 files/digest-dog-1.7-r1 58
MD5 d3467d0ce8367b6b549f383382437b24 files/digest-dog-1.7 58
+MD5 4af367da579347ba9b87e42418a0c3fd files/dog-1.7-check-ctime.diff 1409
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
-iD8DBQFCW7T6EZCkKN40op4RAhuCAJwIO4017uv4iyByyi3nNspJhOXTdwCgoMQt
-nKW8J3+ZquRn216vrg+9Qak=
-=y/so
+iD8DBQFChKH2EZCkKN40op4RAjVqAKC6uTyfZZBGhWbSojOoSPURvQwDQACfWcNN
+KQGEHd7DNdhjqwIH0Z/zlAA=
+=Hg2X
-----END PGP SIGNATURE-----
diff --git a/sys-apps/dog/dog-1.7-r1.ebuild b/sys-apps/dog/dog-1.7-r1.ebuild
new file mode 100644
index 000000000000..5d1c588745b5
--- /dev/null
+++ b/sys-apps/dog/dog-1.7-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/dog/dog-1.7-r1.ebuild,v 1.1 2005/05/13 12:46:31 ka0ttic Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Dog is better than cat"
+HOMEPAGE="http://jl.photodex.com/dog/"
+SRC_URI="http://jl.photodex.com/dog/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 ppc-macos sparc x86"
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch ${FILESDIR}/${P}-check-ctime.diff
+ epatch ${FILESDIR}/${PV}-manpage-touchup.patch
+ sed -i \
+ -e 's/^CFLAGS/#CFLAGS/' \
+ -e "s/gcc/$(tc-getCC)/" \
+ Makefile || die "sed Makefile failed"
+}
+
+src_install() {
+ dobin dog || die
+ doman dog.1
+ dodoc README AUTHORS
+}
diff --git a/sys-apps/dog/files/digest-dog-1.7-r1 b/sys-apps/dog/files/digest-dog-1.7-r1
new file mode 100644
index 000000000000..0ab07c34f37b
--- /dev/null
+++ b/sys-apps/dog/files/digest-dog-1.7-r1
@@ -0,0 +1 @@
+MD5 9dd1e04efb7f8535a632bac2eef60a10 dog-1.7.tar.gz 30433
diff --git a/sys-apps/dog/files/dog-1.7-check-ctime.diff b/sys-apps/dog/files/dog-1.7-check-ctime.diff
new file mode 100644
index 000000000000..251c04d75a16
--- /dev/null
+++ b/sys-apps/dog/files/dog-1.7-check-ctime.diff
@@ -0,0 +1,53 @@
+diff --exclude='*~' --exclude='.*' -I '$Id:' -urN dog-1.7.orig/dog.c dog-1.7/dog.c
+--- dog-1.7.orig/dog.c 2005-05-13 08:01:37.000000000 -0400
++++ dog-1.7/dog.c 2005-05-13 08:30:38.000000000 -0400
+@@ -36,6 +36,7 @@
+ #include <string.h>
+ #include "getopt.h"
+ #include <limits.h>
++#include <time.h>
+ #include <netdb.h>
+
+ // this is fun
+@@ -1321,26 +1322,35 @@
+ InetSockAddr sa;
+ int newsock;
+ uint32 ipAddr;
+- int k;
++ socklen_t k;
+ time_t curr_time;
+ char curr_date[64];
+
+ k = sizeof(sa);
+ while ((newsock=accept(sock,(struct sockaddr*)&sa,&k)) != -1) {
+ if (!no_bind_header) {
++ char *result = NULL;
+ ipAddr = ntohl(sa.addr);
+ time(&curr_time);
+- strcpy(curr_date,ctime(&curr_time));
++ if (!(result = ctime(&curr_time))) {
++ perror("ctime");
++ goto done;
++ }
++ strncpy(curr_date, result, sizeof(curr_date) - 1);
+ while (!isalnum(curr_date[strlen(curr_date)-1])) {
+ curr_date[strlen(curr_date)-1] = 0;
+ }
+ printf("# %s from %d.%d.%d.%d:%d\n",curr_date,(int)ipAddr>>24,(int)(ipAddr>>16)&0xff,(int)(ipAddr>>8)&0xff,(int)ipAddr&0xff,ntohs(sa.port));
+ }
+- straight_dump = newsock;
+- DumpThings(argc,argv,hang_up_bind ? -1 : newsock);
+- if (hang_up_bind) {
++
++ goto done;
++
++ done:
++ straight_dump = newsock;
++ DumpThings(argc,argv,hang_up_bind ? -1 : newsock);
++ if (hang_up_bind) {
+ close(newsock);
+- }
++ }
+ }
+ }
+