On Sat, May 11, 2013 at 10:32:32AM +0100, Stuart Henderson wrote: > On 2013/05/10 19:47, James Turner wrote: > > Attached is a new port for backdir a simple tool that backs up normal > > files in the current directory to a backups folder. Think of it as a > > poor mans vcs. Tested on amd64 and loongson. oks? > > > > Information for inst:backdir-20135056 > > s/20135056/20130506/ > > Should honour CC as well as CFLAGS, and no need for the > INSTALL_PROGRAM_DIR, rest looks good (this could really do > with a manpage though). >
Attached is a diff against the previously attached tar with your suggestions. I believe the 5056 comes from upstream using backdir on the backdir project (you get files like bd_2013-05-06_0959.c), but I agree using the date makes more sense. -- James Turner
diff -u -p -r backdir/Makefile /usr/ports/mystuff/sysutils/backdir/Makefile --- backdir/Makefile Tue May 7 18:47:09 2013 +++ /usr/ports/mystuff/sysutils/backdir/Makefile Sat May 11 11:10:01 2013 @@ -2,9 +2,8 @@ COMMENT = backs up files in a directory -V = 20135056 -DISTNAME = backdir_${V} -PKGNAME = backdir-${V} +DISTNAME = backdir_20135056 +PKGNAME = backdir-20130506 CATEGORIES = sysutils MAINTAINER = James Turner <ja...@calminferno.net> @@ -22,7 +21,6 @@ ALL_TARGET = cf NO_TEST = Yes do-install: - ${INSTALL_PROGRAM_DIR} ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/bd ${PREFIX}/bin/backdir .include <bsd.port.mk> diff -u -p -r backdir/patches/patch-Makefile /usr/ports/mystuff/sysutils/backdir/patches/patch-Makefile --- backdir/patches/patch-Makefile Mon May 6 19:44:37 2013 +++ /usr/ports/mystuff/sysutils/backdir/patches/patch-Makefile Sat May 11 11:10:48 2013 @@ -1,9 +1,10 @@ $OpenBSD$ --- Makefile.orig Sun May 5 13:16:22 2013 -+++ Makefile Mon May 6 19:44:31 2013 -@@ -1,2 +1,4 @@ ++++ Makefile Sat May 11 11:10:42 2013 +@@ -1,2 +1,5 @@ ++CC ?= cc +CFLAGS ?= -O -Wall + cf: bd.c - gcc -O -Wall -o bd bd.c -+ gcc ${CFLAGS} -o bd bd.c ++ ${CC} ${CFLAGS} -o bd bd.c