Skip to content
Permalink
Browse files

Submitted by: jmpp@

I'm finally starting the recovery of the "Available Ports" site, let it be
permanent this time! I plan to have a dedicated "dpadmin" (or anything to that
effect) OD based account that will take care of the job of keeping the page's db
up to date on an automated fashion, along with other chores such as the index
regen one, which is now being taken care of by Paul's account on Lamancha
(which shouldn't be). The appropriate request will be routed through admin@

In the mean time, I suppose there's no reason why management scripts in
base/src/portmgr/ shouldn't be installed, so here's a minor abstraction to
the PortIndex2MySQL.tcl one to make it work with non-default dp installations.
Other scripts can be adapted later for proper installation too.

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@14700 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
jmpalacios committed Oct 19, 2005
1 parent 3e6475d commit e40bd6dc4844d8704ba9110969592108cc6c62f0
Showing with 30 additions and 4 deletions.
  1. +1 −1 src/Makefile.in
  2. +26 −0 src/portmgr/Makefile
  3. +3 −3 src/portmgr/PortIndex2MySQL.tcl
@@ -1,6 +1,6 @@
TCLPKG= darwinports1.0 port1.0 package1.0 pextlib1.0 registry1.0 \
darwintracelib1.0 @OUR_INCLUDED_PACKAGES@
SUBDIR= ${TCLPKG} port programs
SUBDIR= ${TCLPKG} port programs portmgr

all::

@@ -0,0 +1,26 @@
INSTALLDIR= ${DESTDIR}${datadir}/darwinports/resources/portmgr

SCRIPTS= PortIndex2MySQL

edit = sed \
-e 's,@PREFIX\@,$(prefix),g'

include ../../Mk/dports.autoconf.mk

all: ${SCRIPTS}

PortIndex2MySQL: PortIndex2MySQL.tcl
${edit} PortIndex2MySQL.tcl > $@

clean:
rm -f ${SCRIPTS}

test:

distclean: clean

install:
$(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}
$(SILENT)set -x; for file in ${SCRIPTS}; do \
$(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 544 $$file ${INSTALLDIR}; \
done
@@ -1,8 +1,8 @@
#!/usr/bin/tclsh
#!/usr/bin/env tclsh
# PortIndex2MySQL.tcl
# Kevin Van Vechten | kevin@opendarwin.org
# 3-Oct-2002
# $Id: PortIndex2MySQL.tcl,v 1.7 2005/10/17 01:51:00 kevin Exp $
# $Id: PortIndex2MySQL.tcl,v 1.8 2005/10/19 03:23:06 jmpp Exp $
#
# Copyright (c) 2003 Apple Computer, Inc.
# Copyright (c) 2002 Kevin Van Vechten.
@@ -53,7 +53,7 @@ array set global_variations {}
dportinit ui_options global_options global_variations

if {$use_db != ""} {
load /opt/local/lib/libmysqltcl.dylib
load @PREFIX@/lib/libmysqltcl.dylib
set db [mysqlconnect -user darwinports -password woot -db darwinports]
} else {
set db ""

0 comments on commit e40bd6d

Please sign in to comment.
You can’t perform that action at this time.