From owner-freebsd-stable@FreeBSD.ORG Fri Nov 11 15:23:08 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BBDD16A41F for ; Fri, 11 Nov 2005 15:23:08 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from diri.bris.ac.uk (diri.bris.ac.uk [137.222.10.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73FE143D46 for ; Fri, 11 Nov 2005 15:23:07 +0000 (GMT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk ([137.222.16.62]) by diri.bris.ac.uk with esmtp (Exim 4.54) id 1Eaak4-0004RM-Lr; Fri, 11 Nov 2005 15:23:06 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 4.50) id 1Eaak3-00056m-Dx; Fri, 11 Nov 2005 15:23:03 +0000 Date: Fri, 11 Nov 2005 15:23:03 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: "Michael C. Shultz" In-Reply-To: <200511110639.47578.ringworm01@gmail.com> Message-ID: References: <43726E40.3090701@iaces.com> <200511110603.44395.ringworm01@gmail.com> <200511110639.47578.ringworm01@gmail.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1141662977-1131722583=:19268" Sender: Jan Grant X-Spam-Score: -1.4 X-Spam-Level: - Cc: freebsd-stable@freebsd.org Subject: Re: gnome-upgrade.sh X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2005 15:23:08 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-1141662977-1131722583=:19268 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 11 Nov 2005, Michael C. Shultz wrote: > > > One last thing, if you make a script that does the conversion, might I > > > have a copy? Here is how I'll set up pm-020.conf to work: > > > > Surely. pkgtools.conf is actually a ruby script: I've no idea how > > dynamically the rules are evaluated but something that works ona > > prettystock bunch of settings should be close to trivial. > > Thank you. If it works well I might use it to have portmanager pick up > settings from portupgrade "on the fly", or at least provide some sort > of conversion command. Thanks :) Attached uses ruby to parse the pkgtools.conf (it relies on the portupgrade ruby package) - it'll spit out the appropriate sections (HOLD_PKGS, BEFOREBUILD, AFTERINSTALL and MAKE_ARGS) in what I think the portmanager format is (although the script is trivial, as you can see). Note that the MAKE_ARGS etc go through a hash/dictionary and consequently are unordered. A small snippet of the output I get from this: [[[ CATEGORY/PORT|OPTION=| # do not delete this line! # Ignored packages from HOLD_PKGS IGNORE|bsdpan-*| IGNORE|x11/nvidia-driver| IGNORE|editors/openoffice*| # STOP entries come from BEFOREBUILD # START entries come from AFTERINSTALL START|/databases/postgresql7 chmod a+x /usr/local/share/postgresql/502.pgsql| START|/www/jakarta-tomcat5 chmod a-x /usr/local/etc/rc.d/020.jakarta-tomcat*.sh| # Package options from MAKE_ARGS # Note: pkgtools.conf will use the UNION of all matching lines security/gnupg|WITH_SUID_GPG=yes| devel/subversion|WITH_PYTHON=yes WITH_MOD_DAV_SVN=yes WITHOUT_BDB=yes| x11/kde3|| deskutils/kdepim3|WITH_KPILOT=yes| www/gallery|| www/rt*|WITH_FASTCGI=yes WITH_APACHE2=yes DB_TYPE=Pg DB_HOST=localhost DB_DATABASE=rt3 DB_USER=rt3| www/apache2|WITH_PROXY_MODULES=yes| multimedia/kdemultimedia*|WITH_LAME=yes WITH_XINE=yes WITH_MPEGLIB=yes| */*|BATCH=yes| java/jdk14|NATIVE_BOOTSTRAP=yes JAVA_HOME=| */kde*|WITH_KDE_DEBUG=yes| mail/exim|WITH_EXIMON=yes WITH_EXISCAN_ACL=yes WITH_TCP_WRAPPERS=yes WITH_PGSQL=yes WITHOUT_PERL=yes | ]]] -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44 (0)117 3317661 http://ioctl.org/jan/ I'm the dandy information superhighwayman. ---559023410-1141662977-1131722583=:19268 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=pkgtools-to-portmanager.rb Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=pkgtools-to-portmanager.rb IyEvdXNyL2xvY2FsL2Jpbi9ydWJ5DQoNCnJlcXVpcmUgInBrZ3Rvb2xzIg0K DQpwdXRzICJDQVRFR09SWS9QT1JUfE9QVElPTj18ICAgICAgICAgICMgZG8g bm90IGRlbGV0ZSB0aGlzIGxpbmUhIg0KDQpsb2FkX2NvbmZpZw0KDQoNCiMg aGVsZCBwYWNrYWdlcw0KDQpwdXRzICIiDQpwdXRzICIjIElnbm9yZWQgcGFj a2FnZXMgZnJvbSBIT0xEX1BLR1MiDQpwdXRzICIiDQoNCmNvbmZpZ192YWx1 ZSg6SE9MRF9QS0dTKS5lYWNoIGRvIHxwa2d8DQoNCglwdXRzICJJR05PUkV8 IiArIHBrZyArICJ8Ig0KDQplbmQNCg0KDQojIGJlZm9yZWJ1aWxkIGJlY29t ZXMgc3RvcA0KDQpwdXRzICIiDQpwdXRzICIjIFNUT1AgZW50cmllcyBjb21l IGZyb20gQkVGT1JFQlVJTEQiDQpwdXRzICIiDQoNCmNvbmZpZ192YWx1ZSg6 QkVGT1JFQlVJTEQpLmVhY2ggZG8gfHBrZ3wNCg0KCXB1dHMgIlNUT1B8LyIg KyBwa2dbMF0gKyAiICIgKyBwa2dbMV0gKyAifCINCg0KZW5kDQoNCiMgYWZ0 ZXJpbnN0YWxsIGJlY29tZXMgc3RhcnQNCg0KcHV0cyAiIg0KcHV0cyAiIyBT VEFSVCBlbnRyaWVzIGNvbWUgZnJvbSBBRlRFUklOU1RBTEwiDQpwdXRzICIi DQoNCmNvbmZpZ192YWx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