mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-31 05:41:08 +00:00
- Fix RUN_DEPENDS on archivers/gzip by checking if the package is installed,
not the executable (since in the later case base-system gzip will always be found). - be a little more explicit in the related patch - bump PORTREVISION for depends "change" Approved by: novel@ (implicit)
This commit is contained in:
parent
40cf78ae6a
commit
464bbaba48
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=210649
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= deltup
|
||||
PORTVERSION= 0.4.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://deltup.org/e107_files/downloads/ \
|
||||
LOCAL/rafan \
|
||||
@ -21,7 +22,7 @@ COMMENT= Source delta update program
|
||||
|
||||
RUN_DEPENDS= bdelta:${PORTSDIR}/misc/bdelta \
|
||||
xdelta:${PORTSDIR}/misc/xdelta \
|
||||
gzip:${PORTSDIR}/archivers/gzip
|
||||
gzip>=1:${PORTSDIR}/archivers/gzip
|
||||
|
||||
BZIP2_102_SOURCE= bzip2-${BZIP2_102}.tar.gz
|
||||
BZIP2_103_SOURCE= bzip2-${BZIP2_103}.tar.gz
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- gzip.cpp.orig 1970-01-01 05:00:00.000000000 +0500
|
||||
+++ gzip.cpp 2008-03-10 14:15:19.000000000 +0500
|
||||
@@ -0,0 +1,59 @@
|
||||
--- ./gzip.cpp.orig 2008-04-06 15:43:16.000000000 +0300
|
||||
+++ ./gzip.cpp 2008-04-06 15:43:48.000000000 +0300
|
||||
@@ -0,0 +1,63 @@
|
||||
+/* Copyright (C) 2007 John Whitney
|
||||
+ *
|
||||
+ * This program is free software; you can redistribute it and/or modify
|
||||
@ -29,7 +29,7 @@
|
||||
+
|
||||
+void find_gzip_compressor() {
|
||||
+ string tempfile = getTmpFilename();
|
||||
+ string command = "find `echo $PATH | tr \":\" \" \"` -iname \"gzip\" -exec sh -c 'echo {};{} -V 2>&1|grep \"^gzip\"' \\; 2> /dev/null > "
|
||||
+ string command = "find `echo $PATH | tr ':' ' '` -iname 'gzip' -exec sh -c 'echo {};{} -V 2>&1|grep ^gzip' \\; 2> /dev/null > "
|
||||
+ + tempfile;
|
||||
+
|
||||
+ system(command.c_str());
|
||||
@ -56,7 +56,11 @@
|
||||
+ fname = line;
|
||||
+ }
|
||||
+ if (verbose) {
|
||||
+ printf("found gnu gzip compressor/decompressor:\n");
|
||||
+ if (gzip_name!=NULL) printf(" %s\n", gzip_name);
|
||||
+ if (gzip_name!=NULL)
|
||||
+ {
|
||||
+ printf("found GNU gzip compressor/decompressor:\n");
|
||||
+ printf(" %s\n", gzip_name);
|
||||
+ }
|
||||
+ else printf("GNU gzip compressor/decompressor NOT found!\n");
|
||||
+ }
|
||||
+}
|
||||
|
Loading…
Reference in New Issue
Block a user