- Make wanted-ports compatible with pkgng by dropping dependency
on old pkg tools. Approved by: shaun (mentor) Submitted by: Bryan Drewery PR: ports/169301
This commit is contained in:
parent
6265f069f5
commit
a629eef46a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299820
2 changed files with 3 additions and 9 deletions
|
@ -7,7 +7,7 @@
|
|||
# port is self-contained in the files directory.
|
||||
|
||||
PORTNAME= wanted-ports
|
||||
PORTVERSION= 0.1
|
||||
PORTVERSION= 0.2
|
||||
#PORTREVISION is set from ${CFGFILE}
|
||||
CATEGORIES= ports-mgmt
|
||||
MASTER_SITES= # none
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# $FreeBSD$
|
||||
|
||||
# Copyright 2010 Matthew Seaman. All rights reserved.
|
||||
# Copyright 2010,2012 Matthew Seaman. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
|
@ -280,13 +280,7 @@ CONF_FILE=${WANTEDPORTSCFG:-/var/db/%%PORTNAME%%.conf}
|
|||
|
||||
# The currently installed version of %%PKGNAME%% -- accounting for any
|
||||
# dynamic updates to PORTREVISION
|
||||
INSTALLED_PKG=$( pkg_info -Ex %%PKGNAME%% )
|
||||
|
||||
if [ -z $INSTALLED_PKG ] ; then
|
||||
echo "${ME}: FATAL -- the package providing this script seems " \
|
||||
"not to be installed" >&2
|
||||
exit 1
|
||||
fi
|
||||
INSTALLED_PKG="%%PKGNAME%%"
|
||||
|
||||
#
|
||||
# Handle Options -- Main Code Loop
|
||||
|
|
Loading…
Reference in a new issue