diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2014-03-03 12:29:44 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2014-03-03 12:29:44 +0000 |
commit | 747fbe6807f6711713bc10282b7da1486de6e112 (patch) | |
tree | c95ffd28de027b44d537bb1b3ecf46d95adc639b | |
parent | 2a5065083df6f4ec90105da9121fce86ebeac30c (diff) | |
download | ports-747fbe6807f6711713bc10282b7da1486de6e112.tar.gz ports-747fbe6807f6711713bc10282b7da1486de6e112.zip |
Notes
-rw-r--r-- | sysutils/fusefs-mhddfs/Makefile | 25 | ||||
-rw-r--r-- | sysutils/fusefs-mhddfs/files/patch-Makefile | 50 | ||||
-rw-r--r-- | sysutils/fusefs-mhddfs/pkg-descr | 2 |
3 files changed, 64 insertions, 13 deletions
diff --git a/sysutils/fusefs-mhddfs/Makefile b/sysutils/fusefs-mhddfs/Makefile index 01395ae82fd8..ff2f2840abbc 100644 --- a/sysutils/fusefs-mhddfs/Makefile +++ b/sysutils/fusefs-mhddfs/Makefile @@ -11,23 +11,24 @@ DISTNAME= ${PORTNAME}_${PORTVERSION} MAINTAINER= proler@gmail.com COMMENT= Multi HDD [FUSE] File System -USES= fuse pkgconfig -USE_GMAKE= yes +USES= fuse pkgconfig gmake MAKE_ARGS= WITHOUT_XATTR=1 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -MAN1= ${PORTNAME}.1 -PLIST_FILES= bin/${PORTNAME} +PLIST_FILES= bin/${PORTNAME} man/man1/mhddfs.1.gz PORTDOCS= README ChangeLog -NO_STAGE= yes +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} -e 's|<sys/vfs.h>|<sys/statvfs.h>|' \ + ${WRKSRC}/src/main.c + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1 -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR} -.endif + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/sysutils/fusefs-mhddfs/files/patch-Makefile b/sysutils/fusefs-mhddfs/files/patch-Makefile new file mode 100644 index 000000000000..27dc30fcdb9d --- /dev/null +++ b/sysutils/fusefs-mhddfs/files/patch-Makefile @@ -0,0 +1,50 @@ +--- ./Makefile.orig 2014-03-03 13:17:15.751580055 +0100 ++++ ./Makefile 2014-03-03 13:17:55.792585399 +0100 +@@ -83,14 +83,14 @@ + $(shell rpm --eval '%_rpmdir')/*/mhddfs-*$(VERSION)-$(RELEASE)* . + + $(TARGET): obj/obj-stamp $(OBJ) +- gcc $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS) ++ $(CC) $(CFLAGS) $(OBJ) -o $@ $(LDFLAGS) + + obj/obj-stamp: + mkdir -p obj + touch $@ + + obj/%.o: src/%.c +- gcc $(CFLAGS) -c $< -o $@ ++ $(CC) $(CFLAGS) -c $< -o $@ + + clean: + rm -fr obj $(TARGET) pwrite_test statvfs rename +@@ -98,7 +98,7 @@ + rm -fr rename-test/mnt + + rename: tests/rename.c +- gcc -o $@ $< ++ $(CC) -o $@ $< + + release_svn_thread: + @echo current version $(VERSION) +@@ -113,10 +113,10 @@ + screen -t vim vim Makefile src/*.[ch] README* ChangeLog mhddfs.1 + + pwrite_test: src/test/pwrite.c +- gcc -o $@ $< ++ $(CC) -o $@ $< + + statvfs: src/test/statvfs.c +- gcc -o $@ $< ++ $(CC) -o $@ $< + + images-mount: test1.img test2.img + mount|grep -q `pwd`/test1 || sudo mount -o loop test1.img test1 +@@ -160,7 +160,7 @@ + while make test; do echo ok; echo; done + + ptest: +- gcc -o $@ tests/plocks.c -l pthread ++ $(CC) -o $@ tests/plocks.c -l pthread + -./$@ + rm -f $@ + diff --git a/sysutils/fusefs-mhddfs/pkg-descr b/sysutils/fusefs-mhddfs/pkg-descr index 12def5fcf8d2..c114d0192eb2 100644 --- a/sysutils/fusefs-mhddfs/pkg-descr +++ b/sysutils/fusefs-mhddfs/pkg-descr @@ -7,4 +7,4 @@ drives or remote file systems. It is like unionfs, but can choose the drive with the most free space to create new files on, and can move data transparently between drives. -WWW: http://mhddfs.uvw.ru/ +WWW: http://mhddfs.uvw.ru/ |