- don't hardcode /usr/local
ok landry@ (MAINTAINER)
This commit is contained in:
parent
82f570bcfc
commit
52f8c96e35
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.6 2011/01/07 16:36:19 landry Exp $
|
||||
# $OpenBSD: Makefile,v 1.7 2011/07/17 19:47:13 jasper Exp $
|
||||
|
||||
COMMENT= user-friendly package browser and manager
|
||||
|
||||
DISTNAME= pkg_mgr-0.2.1
|
||||
REVISION= 0
|
||||
CATEGORIES= sysutils
|
||||
|
||||
HOMEPAGE= http://rhaalovely.net/pkg_mgr.html
|
||||
@ -27,4 +28,7 @@ RUN_DEPENDS= devel/p5-Curses-UI \
|
||||
|
||||
PKG_ARCH= *
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/OpenBSD/PackageManager/DBIModel.pm
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-OpenBSD_PackageManager_DBIModel_pm,v 1.1 2011/07/17 19:47:13 jasper Exp $
|
||||
--- OpenBSD/PackageManager/DBIModel.pm.orig Thu Jul 14 14:36:44 2011
|
||||
+++ OpenBSD/PackageManager/DBIModel.pm Thu Jul 14 14:37:09 2011
|
||||
@@ -50,7 +50,7 @@ sub init
|
||||
$self->{orphaned} = (); # list of orphaned ids
|
||||
$self->{portslist} = undef; # key=category id, value=port id array
|
||||
$self->{dbh}->disconnect if defined $self->{dbh};
|
||||
- $self->{dbh} = DBI->connect("dbi:SQLite:/usr/local/share/sqlports-compact");
|
||||
+ $self->{dbh} = DBI->connect("dbi:SQLite:${LOCALBASE}/share/sqlports-compact");
|
||||
$self->get_allports;
|
||||
$self->update_installed;
|
||||
}
|
Loading…
Reference in New Issue
Block a user