diff --git a/ports-mgmt/portrac/Makefile b/ports-mgmt/portrac/Makefile index e61b2909d292..f44819a9aaf6 100644 --- a/ports-mgmt/portrac/Makefile +++ b/ports-mgmt/portrac/Makefile @@ -1,9 +1,8 @@ -# Created by: mgp # $FreeBSD$ PORTNAME= portrac PORTVERSION= 0.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ports-mgmt MASTER_SITES= http://e-soul.org/distfiles/ \ http://home.e-soul.org/~mgp/distfiles/ @@ -11,7 +10,7 @@ MASTER_SITES= http://e-soul.org/distfiles/ \ MAINTAINER= mgp@e-soul.org COMMENT= Simple GUI tool for tracking port updates -LICENSE= BSD +LICENSE= BSD2CLAUSE PLIST_FILES= bin/portrac \ share/portrac/portrac.png \ @@ -23,6 +22,10 @@ PLIST_DIRS= share/portrac USES= qmake tar:bzip2 USE_QT4= gui moc_build +.if defined(WITH_PKGNG) +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-PortChecker.cc +.endif + do-install: ${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/portrac ${STAGEDIR}${PREFIX}/bin && \ ${MKDIR} ${STAGEDIR}${DATADIR} && \ diff --git a/ports-mgmt/portrac/files/extra-patch-PortChecker.cc b/ports-mgmt/portrac/files/extra-patch-PortChecker.cc new file mode 100644 index 000000000000..539e68c7a94e --- /dev/null +++ b/ports-mgmt/portrac/files/extra-patch-PortChecker.cc @@ -0,0 +1,12 @@ +--- PortChecker.cc.orig 2011-05-29 04:27:22.000000000 -0500 ++++ PortChecker.cc 2014-02-22 14:26:23.633015152 -0600 +@@ -88,7 +88,7 @@ + { + index = (preferences->getPreference(INDEX_PREF).c_str()); + } +- execl("/usr/sbin/pkg_version", "pkg_version", "-I", index, (char *) 0); ++ execl("/usr/sbin/pkg", "pkg", "version", "-I", index, (char *) 0); + perror("execl"); + } + +