ports/144690: [NEW PORT] sysutils/fsvs

Alexander Pyhalov alp at rsu.ru
Fri Mar 12 13:00:14 UTC 2010


>Number:         144690
>Category:       ports
>Synopsis:       [NEW PORT] sysutils/fsvs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 12 13:00:14 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Pyhalov
>Release:        8.0
>Organization:
Southern Federal University
>Environment:
>Description:
I've just made a port for a fresh version of FSVS (http://fsvs.tigris.org/). 
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -Nur /var/empty/Makefile fsvs/Makefile
--- /var/empty/Makefile	1970-01-01 03:00:00.000000000 +0300
+++ fsvs/Makefile	2010-03-12 15:55:48.264907905 +0300
@@ -0,0 +1,59 @@
+# New ports collection makefile for:    fsvs
+# Date created:                         22 August 2007
+# Whom:                                 os at rsu.ru
+#
+# $FreeBSD$
+
+PORTNAME=	fsvs
+PORTVERSION=	1.2.2
+PORTREVISION=	1
+CATEGORIES=	devel
+MASTER_SITES=	http://download.fsvs-software.org/
+# DISTNAME=	${PORTNAME}-${DISTVERSION}
+# DISTFILES=	${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
+
+#
+# XXX 
+# 
+# Have to specify dependencies
+# Have to to specify correct path to apr-1-config
+
+MAINTAINER=	alp at rsu.ru
+COMMENT=	Backup/restore tool with a subversion repository as the backend
+
+GNU_CONFIGURE=	yes
+USE_GMAKE=	yes
+USE_PERL=	yes
+
+USE_BZIP2=      yes
+
+USE_PERL5_BUILD=yes
+
+USE_AUTOTOOLS= autoconf:262
+
+PLIST_FILES=    bin/fsvs
+BINS=           src/fsvs
+
+LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
+LIB_DEPENDS+= svn_ra-1:${PORTSDIR}/devel/subversion
+
+CONFIGURE_ENV= CFLAGS="-O0"
+CONFIGURE_ARGS+= --enable-dev-fake
+
+OPTIONS+= 	DEBUG "Enable debug" off
+
+.include <bsd.port.options.mk>
+
+.  if defined(WITH_DEBUG)
+CONFIGURE_ARGS+= --enable-debug
+.  endif
+
+.include <bsd.port.pre.mk>
+
+
+do-install:
+.for _BIN in ${BINS}
+	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${_BIN} ${LOCALBASE}/bin
+.endfor
+
+.include <bsd.port.post.mk>
diff -Nur /var/empty/distinfo fsvs/distinfo
--- /var/empty/distinfo	1970-01-01 03:00:00.000000000 +0300
+++ fsvs/distinfo	2010-03-12 10:50:59.000000000 +0300
@@ -0,0 +1,3 @@
+MD5 (fsvs-1.2.2.tar.bz2) = b08fb0f2932d2f1ae27529bc5a4df220
+SHA256 (fsvs-1.2.2.tar.bz2) = bfb19e2c7683ecb2c28165ae9328f2c0806e28607339ae7e9aeca21c2da0866a
+SIZE (fsvs-1.2.2.tar.bz2) = 423317
diff -Nur /var/empty/files/patch-fsvs fsvs/files/patch-fsvs
--- /var/empty/files/patch-fsvs	1970-01-01 03:00:00.000000000 +0300
+++ fsvs/files/patch-fsvs	2010-03-12 11:14:41.000000000 +0300
@@ -0,0 +1,32 @@
+diff -ru fsvs-1.2.2/src/diff.c fsvs-1.2.2_new/src/diff.c
+--- src/diff.c	2009-10-12 23:05:54.000000000 +0400
++++ src/diff.c	2010-03-12 10:43:43.358811440 +0300
+@@ -9,7 +9,6 @@
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <poll.h>
+-#include <alloca.h>
+ #include <time.h>
+ #include <fcntl.h>
+ 
+diff -ru fsvs-1.2.2/src/url.c fsvs-1.2.2_new/src/url.c
+--- src/url.c	2009-10-12 23:05:54.000000000 +0400
++++ src/url.c	2010-03-12 10:44:01.321722431 +0300
+@@ -804,7 +804,7 @@
+ int url__load_list(char *dir, int reserve_space)
+ {
+ 	int status, fh, l, i;
+-	struct stat64 st;
++	struct stat st;
+ 	char *urllist_mem;
+ 	int inum, cnt, new_count;
+ 	svn_revnum_t rev;
+@@ -829,7 +829,7 @@
+ 
+ 	STOPIF_CODE_ERR(status, status, "Cannot read URL list");
+ 
+-	STOPIF_CODE_ERR( fstat64(fh, &st) == -1, errno,
++	STOPIF_CODE_ERR( fstat(fh, &st) == -1, errno,
+ 			"fstat() of url-list");
+ 
+ 	/* add 1 byte to ensure \0 */
diff -Nur /var/empty/pkg-descr fsvs/pkg-descr
--- /var/empty/pkg-descr	1970-01-01 03:00:00.000000000 +0300
+++ fsvs/pkg-descr	2009-11-27 19:14:34.000000000 +0300
@@ -0,0 +1,5 @@
+FSVS stands for "Fast System VerSioning", "File System VerSioning" or "Full
+System VerSioning". It aims to become a complete backup/restore tool for all
+files in a directory tree or whole filesystems, with a subversion repository
+as the backend. You may think of it as some kind of tar or rsync with
+versioned storage.


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list