diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2004-12-23 13:33:08 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2004-12-23 13:33:08 +0000 |
commit | 9fd9301fcf7d5c901556a8008dabb76884d994d8 (patch) | |
tree | 72a228dabe264b254bcfe4605b5d84580d2bae01 /net-p2p/syrep | |
parent | Stable on hppa. (Manifest recommit) (diff) | |
download | gentoo-2-9fd9301fcf7d5c901556a8008dabb76884d994d8.tar.gz gentoo-2-9fd9301fcf7d5c901556a8008dabb76884d994d8.tar.bz2 gentoo-2-9fd9301fcf7d5c901556a8008dabb76884d994d8.zip |
Initial commit.
Diffstat (limited to 'net-p2p/syrep')
-rw-r--r-- | net-p2p/syrep/ChangeLog | 10 | ||||
-rw-r--r-- | net-p2p/syrep/Manifest | 5 | ||||
-rw-r--r-- | net-p2p/syrep/files/digest-syrep-0.6 | 1 | ||||
-rw-r--r-- | net-p2p/syrep/files/syrep-0.6-gentoo.diff | 172 | ||||
-rw-r--r-- | net-p2p/syrep/metadata.xml | 9 | ||||
-rw-r--r-- | net-p2p/syrep/syrep-0.6.ebuild | 41 |
6 files changed, 238 insertions, 0 deletions
diff --git a/net-p2p/syrep/ChangeLog b/net-p2p/syrep/ChangeLog new file mode 100644 index 000000000000..b814955e0974 --- /dev/null +++ b/net-p2p/syrep/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-p2p/syrep +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/syrep/ChangeLog,v 1.1 2004/12/23 13:33:08 ka0ttic Exp $ + +*syrep-0.6 (23 Dec 2004) + + 23 Dec 2004; Aaron Walker <ka0ttic@gentoo.org> +metadata.xml, + +files/syrep-0.6-gentoo.diff, +syrep-0.6.ebuild: + Initial commit. + diff --git a/net-p2p/syrep/Manifest b/net-p2p/syrep/Manifest new file mode 100644 index 000000000000..3fc2bdff63a0 --- /dev/null +++ b/net-p2p/syrep/Manifest @@ -0,0 +1,5 @@ +MD5 16343ffc2bdf2fa1327a414ed6c390b9 syrep-0.6.ebuild 936 +MD5 cf836737ed54322f88a90ef4bb6ed825 ChangeLog 274 +MD5 f8d10f350e91f30316ea4e1bd1e76470 metadata.xml 254 +MD5 77db216ecabf366edb645bc535a28321 files/syrep-0.6-gentoo.diff 6243 +MD5 ffe0e6d4be90ab89e5f2f4ff60c8f4e1 files/digest-syrep-0.6 61 diff --git a/net-p2p/syrep/files/digest-syrep-0.6 b/net-p2p/syrep/files/digest-syrep-0.6 new file mode 100644 index 000000000000..97711fca6bb0 --- /dev/null +++ b/net-p2p/syrep/files/digest-syrep-0.6 @@ -0,0 +1 @@ +MD5 02e1faedfdd7bb23b5dfa8858b1f02dc syrep-0.6.tar.gz 143012 diff --git a/net-p2p/syrep/files/syrep-0.6-gentoo.diff b/net-p2p/syrep/files/syrep-0.6-gentoo.diff new file mode 100644 index 000000000000..4d81af0ddbf5 --- /dev/null +++ b/net-p2p/syrep/files/syrep-0.6-gentoo.diff @@ -0,0 +1,172 @@ +diff -urN syrep-0.6.orig/configure syrep-0.6/configure +--- syrep-0.6.orig/configure 2004-12-22 22:46:14.000000000 -0500 ++++ syrep-0.6/configure 2004-12-22 23:59:50.000772536 -0500 +@@ -2830,7 +2830,7 @@ + + # If using GCC specifiy some additional parameters + if test "x$GCC" = "xyes" ; then +- CFLAGS="$CFLAGS -pipe -Wall -W -Wno-unused-parameter" ++ CFLAGS="$CFLAGS -Wall -W -Wno-unused-parameter" + fi + + if type -p stow > /dev/null && test -d /usr/local/stow ; then +diff -urN syrep-0.6.orig/src/forget.c syrep-0.6/src/forget.c +--- syrep-0.6.orig/src/forget.c 2004-12-22 22:46:14.000000000 -0500 ++++ syrep-0.6/src/forget.c 2004-12-22 23:59:06.277419496 -0500 +@@ -168,7 +168,7 @@ + + t = args.remember_arg*24*60*60; + time(&now); +- limit = t > now ? 0 : now-t; ++ limit = (time_t)t > now ? 0 : now-t; + + if (args.verbose_flag) { + fprintf(stderr, "Current time is %s", ctime(&now)); +diff -urN syrep-0.6.orig/src/merge.c syrep-0.6/src/merge.c +--- syrep-0.6.orig/src/merge.c 2004-12-22 22:46:14.000000000 -0500 ++++ syrep-0.6/src/merge.c 2004-12-22 23:59:06.277419496 -0500 +@@ -153,7 +153,7 @@ + const char *p; + char *d; + +- for (p = path, d = dst; *p && d-dst < l-1; p++) { ++ for (p = path, d = dst; *p && d-dst < (signed)l-1; p++) { + if (*p == '/') { + *(d++) = '%'; + *(d++) = '2'; +diff -urN syrep-0.6.orig/src/package.c syrep-0.6/src/package.c +--- syrep-0.6.orig/src/package.c 2004-12-22 22:46:14.000000000 -0500 ++++ syrep-0.6/src/package.c 2004-12-22 23:59:06.277419496 -0500 +@@ -181,7 +181,7 @@ + goto finish; + } + +- if (n != t) { ++ if (n != (ssize_t)t) { + if ((r = (void*) p->write_z.next_in - d) > 0) + r --; + +@@ -212,7 +212,7 @@ + size_t t = MIN(l, CBUFSIZE); + ssize_t n; + +- if ((n = loop_read(sfd, buf, t)) != t) { ++ if ((n = loop_read(sfd, buf, t)) != (ssize_t)t) { + fprintf(stderr, "read() : %s\n", n < 0 ? strerror(errno) : "EOF"); + goto finish; + } +@@ -245,10 +245,10 @@ + size_t t = MIN(l, CBUFSIZE); + ssize_t n; + +- if (package_read(p, buf, t) != t) ++ if (package_read(p, buf, t) != (ssize_t)t) + goto finish; + +- if ((n = loop_write(dfd, buf, t)) != t) { ++ if ((n = loop_write(dfd, buf, t)) != (ssize_t)t) { + fprintf(stderr, "write() : %s\n", n < 0 ? strerror(errno) : "EOF"); + goto finish; + } +@@ -360,7 +360,7 @@ + + t = (void*) p->write_z.next_out - p->write_zbuf; + if (t) { +- if ((n = loop_write(p->write_fd, p->write_zbuf, t)) != t) { ++ if ((n = loop_write(p->write_fd, p->write_zbuf, t)) != (ssize_t)t) { + fprintf(stderr, "loop_write(): %s\n", n < 0 ? strerror(errno) : "EOF"); + r = -1; + break; +diff -urN syrep-0.6.orig/src/syrep.c syrep-0.6/src/syrep.c +--- syrep-0.6.orig/src/syrep.c 2004-12-22 22:46:14.000000000 -0500 ++++ syrep-0.6/src/syrep.c 2004-12-22 23:59:06.276419648 -0500 +@@ -262,7 +262,7 @@ + if (args.inputs_num < 1) + fprintf(stderr, "WARNING: No repository or snapshot to specified!\n"); + +- for (i = 0; i < args.inputs_num; i++) { ++ for (i = 0; (unsigned)i < args.inputs_num; i++) { + static char saved_cwd[PATH_MAX]; + + if (args.local_temp_flag && isdirectory(args.inputs[i]) >= 1) { +@@ -281,7 +281,7 @@ + fprintf(stderr, "*** %s ***\n", path); + + if (m && args.output_directory_given) { +- if (getcwd(saved_cwd, sizeof(saved_cwd)) < 0) { ++ if (getcwd(saved_cwd, sizeof(saved_cwd)) == NULL) { + fprintf(stderr, "getcwd(): %s\n", strerror(errno)); + return -1; + } +@@ -304,7 +304,7 @@ + } + } + +- if (args.inputs_num > 1 && i < args.inputs_num-1) ++ if (args.inputs_num > 1 && (unsigned)i < args.inputs_num-1) + fprintf(stderr, "\n"); + + db_context_free(c); +@@ -340,7 +340,7 @@ + goto finish; + } + +- for (i = 0; i < args.inputs_num; i++) { ++ for (i = 0; (unsigned)i < args.inputs_num; i++) { + static char saved_cwd[PATH_MAX]; + + if (isdirectory(args.inputs[i]) <= 0) { +@@ -372,7 +372,7 @@ + cache = md_cache_open(p, args.ro_cache_flag); + } + +- if (getcwd(saved_cwd, sizeof(saved_cwd)) < 0) { ++ if (getcwd(saved_cwd, sizeof(saved_cwd)) == NULL) { + fprintf(stderr, "getcwd(): %s\n", strerror(errno)); + goto finish; + } +@@ -429,7 +429,7 @@ + if (args.inputs_num < 1) + fprintf(stderr, "WARNING: No repository specified!\n"); + +- for (i = 0; i < args.inputs_num; i++) { ++ for (i = 0; (unsigned)i < args.inputs_num; i++) { + + if (isdirectory(args.inputs[i]) <= 0) { + fprintf(stderr, "%s is not a directory\n", args.inputs[i]); +@@ -442,7 +442,7 @@ + if (cleanup(args.inputs[i]) < 0) + goto finish; + +- if (args.inputs_num > 1 && i < args.inputs_num-1) ++ if (args.inputs_num > 1 && (unsigned)i < args.inputs_num-1) + fprintf(stderr, "\n"); + } + +@@ -461,7 +461,7 @@ + if (args.inputs_num < 1) + fprintf(stderr, "WARNING: No repository or snapshot to specified!\n"); + +- for (i = 0; i < args.inputs_num; i++) { ++ for (i = 0; (unsigned)i < args.inputs_num; i++) { + if (args.local_temp_flag && isdirectory(args.inputs[i]) >= 1) { + const char *p = get_attached_filename(args.inputs[i], SYREP_TEMPDIR); + mkdir(p, 0777); +@@ -483,7 +483,7 @@ + if (forget(c, target) < 0) + goto finish; + +- if (args.inputs_num > 1 && i < args.inputs_num-1) ++ if (args.inputs_num > 1 && (unsigned)i < args.inputs_num-1) + fprintf(stderr, "\n"); + + db_context_free(c); +@@ -521,7 +521,7 @@ + static void free_args(void) { + int i; + +- for (i = 0; i < args.inputs_num; i++) ++ for (i = 0; (unsigned)i < args.inputs_num; i++) + free(args.inputs[i]); + + free(args.inputs); diff --git a/net-p2p/syrep/metadata.xml b/net-p2p/syrep/metadata.xml new file mode 100644 index 000000000000..d31152aca840 --- /dev/null +++ b/net-p2p/syrep/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>ka0ttic@gentoo.org</email> + <name>Aaron Walker</name> + </maintainer> +</pkgmetadata> diff --git a/net-p2p/syrep/syrep-0.6.ebuild b/net-p2p/syrep/syrep-0.6.ebuild new file mode 100644 index 000000000000..b560c85c2962 --- /dev/null +++ b/net-p2p/syrep/syrep-0.6.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-p2p/syrep/syrep-0.6.ebuild,v 1.1 2004/12/23 13:33:08 ka0ttic Exp $ + +inherit eutils + +DESCRIPTION="A p2p generic file repository synchronization tool that may be used to synchronize large file hierarchies bidirectionally by exchanging patch files." +HOMEPAGE="http://0pointer.de/lennart/projects/syrep/" +SRC_URI="http://0pointer.de/lennart/projects/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc" + +DEPEND="sys-libs/zlib + >=sys-libs/db-4.2 + doc? ( net-www/lynx )" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-gentoo.diff +} + +src_compile() { + econf \ + $(use_enable doc lynx) \ + --disable-xmltoman \ + --disable-subversion \ + --disable-gengetopt \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + cd ${S}/doc + dodoc README *.txt + use doc && dohtml *.html *.css +} |