# ChangeLog for net-misc/wput
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/wput/ChangeLog,v 1.7 2004/07/25 14:39:45 jmglov Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/wput/ChangeLog,v 1.8 2004/12/12 19:08:58 ka0ttic Exp $
+
+*wput-0.5 (12 Dec 2004)
+
+ 12 Dec 2004; Aaron Walker <ka0ttic@gentoo.org> metadata.xml,
+ +files/wput-0.5-gentoo.diff, +wput-0.5.ebuild:
+ Version bump; updated metadata.xml.
25 Jul 2004; Josh Glover <jmglov@gentoo.org> metadata.xml:
Taking over maintainership of this ebuild
-MD5 269182ba4de045629404de803f49fde7 ChangeLog 806
-MD5 b415c417776251837c2e358bfcfd8376 metadata.xml 247
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 5ac29f1880ddce9ec87abfa791aeb4a8 wput-0.5.ebuild 944
MD5 99ee84722a32630b8271c4932a346e42 wput-0.4.ebuild 825
+MD5 a311659367f3e5bed6c4f23b56ab6739 ChangeLog 983
+MD5 0ea3ffdc7ca29f08414d91f62d259c31 metadata.xml 249
MD5 c4f33a3f597e892402d506bb45c85e71 files/digest-wput-0.4 57
+MD5 5658b10fdaa5e2c2663e63aa8d58db37 files/digest-wput-0.5 57
+MD5 25eb8a44df9c58935f1fa03421d2a493 files/wput-0.5-gentoo.diff 1164
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFBvJdTEZCkKN40op4RAk+wAKCrS6GZQAeIkVRFYPQnP0fEaZ1fQQCglHe0
+NswBnY7iek/t2z22HMOcr5o=
+=Edj1
+-----END PGP SIGNATURE-----
--- /dev/null
+MD5 441b2e07219f78167b29a7ac33488fff wput-0.5.tgz 121543
--- /dev/null
+diff -urN wput.orig/Makefile.in wput/Makefile.in
+--- wput.orig/Makefile.in 2004-12-12 13:40:04.146801506 -0500
++++ wput/Makefile.in 2004-12-12 13:48:08.352295485 -0500
+@@ -1,14 +1,18 @@
+ #wput makefile
++
+ prefix = @prefix@
+-mandir = $(prefix)/man/man1
++datadir = $(prefix)/share
++mandir = $(datadir)/man/man1
+ exec_prefix = @exec_prefix@
+ bindir=@bindir@
+
+ all clean win-clean:
+ cd src && $(MAKE) $@
+ install: all
+- cp wput $(bindir)
+- cp doc/wput.1.gz $(mandir)
++ install -d $(DESTDIR)$(bindir)
++ install -m0755 wput $(DESTDIR)$(bindir)
++ install -d $(DESTDIR)$(mandir)
++ install -m0644 doc/wput.1.gz $(DESTDIR)$(mandir)
+ @echo "----------------"
+ @echo "Wput installed. See 'wput -h' or 'man wput' for usage information."
+ @echo "Further documentation is located in the doc/USAGE.* files."
+diff -urN wput.orig/src/ftp.c wput/src/ftp.c
+--- wput.orig/src/ftp.c 2004-12-12 13:40:04.085811666 -0500
++++ wput/src/ftp.c 2004-12-12 13:42:26.493103988 -0500
+@@ -531,7 +531,7 @@
+
+ #define DBUFSIZE 1024
+
+- int fd;
++ int fd = -1;
+ FILE * pipe = NULL;
+ char databuf[DBUFSIZE];
+ int readbytes = 0;
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
- <email>jmglov@gentoo.org</email>
- <name>Josh Glover</name>
+ <email>ka0ttic@gentoo.org</email>
+ <name>Aaron Walker</name>
</maintainer>
</pkgmetadata>
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/wput/wput-0.5.ebuild,v 1.1 2004/12/12 19:08:58 ka0ttic Exp $
+
+inherit eutils
+
+DESCRIPTION="a tiny program that looks like wget and is designed to upload files or whole directories to remote ftp-servers"
+HOMEPAGE="http://itooktheredpill.dyndns.org/wput/"
+SRC_URI="http://itooktheredpill.dyndns.org/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+IUSE="debug"
+
+DEPEND="virtual/libc"
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.diff
+}
+
+src_compile() {
+ local myconf
+ use debug && myconf="--enable-memdbg=yes" || myconf="--enable-g-switch=no"
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc ChangeLog INSTALL TODO
+}