diff options
author | mich <mich@FreeBSD.org> | 2015-04-09 01:19:21 +0800 |
---|---|---|
committer | mich <mich@FreeBSD.org> | 2015-04-09 01:19:21 +0800 |
commit | d5dd1853d87f33cdc1b292626007b6928080d16d (patch) | |
tree | 4d739dfad05ca02a09dbf93c7c3422f1a1fb2c2e | |
parent | 22f3ab212f83c9d562ca34a78660a6e9fb5fecdd (diff) | |
download | freebsd-ports-graphics-d5dd1853d87f33cdc1b292626007b6928080d16d.tar.gz freebsd-ports-graphics-d5dd1853d87f33cdc1b292626007b6928080d16d.tar.zst freebsd-ports-graphics-d5dd1853d87f33cdc1b292626007b6928080d16d.zip |
- change dbm to bsddb
- RUN_DEPENDS
PR: 199294
-rw-r--r-- | ports-mgmt/portell/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/portell/files/patch-portell.py | 31 |
2 files changed, 33 insertions, 0 deletions
diff --git a/ports-mgmt/portell/Makefile b/ports-mgmt/portell/Makefile index 6284e8168c3..5e36919e963 100644 --- a/ports-mgmt/portell/Makefile +++ b/ports-mgmt/portell/Makefile @@ -10,6 +10,8 @@ MASTER_SITES= http://www.freebsdcluster.org/~mich/software/ MAINTAINER= mich@FreeBSD.org COMMENT= Quick display of FreeBSD port descriptions +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bsddb>0:${PORTSDIR}/databases/py-bsddb + USES= python zip NO_BUILD= yes diff --git a/ports-mgmt/portell/files/patch-portell.py b/ports-mgmt/portell/files/patch-portell.py index 51177d7a848..8af8d88767c 100644 --- a/ports-mgmt/portell/files/patch-portell.py +++ b/ports-mgmt/portell/files/patch-portell.py @@ -3,6 +3,15 @@ $FreeBSD$ --- portell.py.orig +++ portell.py +@@ -6,7 +6,7 @@ + # Version: 0.2 + # Usage: portell.py <portname> + +-import sys, os, shelve ++import sys, os, bsddb + + try: + PORTELL_DB = os.environ['PORTELL_PATH'] @@ -14,12 +14,16 @@ PORTELL_DB = "/var/db/portell.db" @@ -24,3 +33,25 @@ $FreeBSD$ def update_db(msg): print msg +@@ -30,7 +34,7 @@ + os.unlink(PORTELL_DB + ".db") + + try: +- d = shelve.open(PORTELL_DB) ++ d = bsddb.btopen(PORTELL_DB, 'c') + fix_dbdb() + os.chmod(PORTELL_DB, 0666) + except: +@@ -63,10 +67,10 @@ + else: + portname = sys.argv[1] + +- d = shelve.open(PORTELL_DB) ++ d = bsddb.btopen(PORTELL_DB, 'r') + fix_dbdb() + +- if d.has_key(portname): ++ if d.has_key(portname): + if os.uname()[0].lower() == "freebsd": + descr_path = d[portname] + "/pkg-descr" + else: |