From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Fri, 22 Aug 2003 14:10:11 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 174 ************************************************** Thursday 21 August 2003 Number 174 ************************************************** Subjects for today 1 [Ux2bs] -h6072 : T.Sikora" 2 -h6072 : T.Sikora" 3 [Ux2bs] makepkg : T.Sikora" 4 makepkg : T.Sikora" 5 Re: -h6072 : Christian Hennecke" **= Email 1 ==========================** Date: Fri, 22 Aug 2003 12:05:24 -0400 From: "T.Sikora" Subject: [Ux2bs] -h6072 What exactly does this do? SET emxopt=-c -n -h6072 -!0x800 John has UX2 set at -h2048. I set it so long ago I forgot why. -- T.Sikora tsikora at ntplx dot net _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 2 ==========================** Date: Fri, 22 Aug 2003 12:05:24 -0400 From: "T.Sikora" Subject: -h6072 What exactly does this do? SET emxopt=-c -n -h6072 -!0x800 John has UX2 set at -h2048. I set it so long ago I forgot why. -- T.Sikora tsikora at ntplx dot net **= Email 3 ==========================** Date: Fri, 22 Aug 2003 20:08:54 -0400 From: "T.Sikora" Subject: [Ux2bs] makepkg This is a multi-part message in MIME format. --------------010209080906080601010708 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Michael you feel ambitious? Could you convert this(makepkg) for inclusion in the ux2_base pkgtools? Here's a make slackware(package) makefile routine. We can add something similar to build.cmd for a 'build -pkg' routine. slackware: all mkdir /tmp/sqlrelay-$(SQLR_VERSION) make prefix=/tmp/sqlrelay-$(SQLR_VERSION)/$(prefix) \ PYTHONDIR=/tmp/sqlrelay-$(SQLR_VERSION)/$(PYTHONDIR) \ ZOPEDIR=/tmp/sqlrelay-$(SQLR_VERSION)/$(ZOPEDIR) \ PHPEXTDIR=/tmp/sqlrelay-$(SQLR_VERSION)/$(PHPEXTDIR) \ TCLLIBSPATH=/tmp/sqlrelay-$(SQLR_VERSION)/$(TCLLIBSPATH) \ PREFIX=/tmp/sqlrelay-$(SQLR_VERSION)/$(PERLPREFIX) \ initroot=/tmp/sqlrelay-$(SQLR_VERSION) \ HAVE_RUBY="" \ install if ( test -n "$(HAVE_RUBY)" ); then \ make DESTDIR=/tmp/sqlrelay-$(SQLR_VERSION) \ -C src/api/ruby -f Makefile.install install; \ fi cd /tmp/sqlrelay-$(SQLR_VERSION); makepkg sqlrelay-$(SQLR_VERSION).tgz mv /tmp/sqlrelay-$(SQLR_VERSION)/sqlrelay-$(SQLR_VERSION).tgz $(PWD) $(RMTREE) /tmp/sqlrelay-$(SQLR_VERSION) -- T.Sikora tsikora at ntplx dot net --------------010209080906080601010708 Content-Type: text/plain; name="makepkg" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="makepkg" #!/bin/sh # Copyright 1994, 1998 Patrick Volkerding, Moorhead, Minnesota USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Wed Mar 18 15:32:33 CST 1998 # Patched to avoid possible symlink attacks in /tmp. TAR=tar-1.13 $TAR --help 1> /dev/null 2> /dev/null if [ ! $? = 0 ]; then TAR=tar fi if [ ! "`LC_MESSAGES=C $TAR --version`" = "tar (GNU tar) 1.13 Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by John Gilmore and Jay Fenlason." ]; then echo "WARNING: pkgtools are unstable with tar > 1.13." echo " You should provide a \"tar-1.13\" in your \$PATH." sleep 5 fi make_install_script() { COUNT=1 LINE="`sed -n "$COUNT p" $1`" while [ ! "$LINE" = "" ]; do LINKGOESIN="`echo "$LINE" | cut -f 1 -d " "`" LINKGOESIN="`dirname $LINKGOESIN`" LINKNAMEIS="`echo "$LINE" | cut -f 1 -d ' '`" LINKNAMEIS="`basename "$LINKNAMEIS"`" LINKPOINTSTO="`echo "$LINE" | cut -f 3 -d ' '`" echo "( cd $LINKGOESIN ; rm -rf $LINKNAMEIS )" echo "( cd $LINKGOESIN ; ln -sf $LINKPOINTSTO $LINKNAMEIS )" COUNT=`expr $COUNT + 1` LINE="`sed -n "$COUNT p" $1`" done } usage() { cat << EOF Usage: makepkg package_name.tgz Makes a Slackware compatible "*.tgz" package containing the contents of the current and all subdirectories. If symbolic links exist, they will be removed and an installation script will be made to recreate them later. This script will be called "install/doinst.sh". You may add any of your own ash-compatible shell scripts to this file and rebuild the package if you wish. options: -l, --linkadd y|n (moves symlinks into doinst.sh: recommended) -c, --chown y|n (resets all permissions to root:root 755 - not generally recommended) If these options are not set, makepkg will prompt as appropriate. EOF } TMP=/tmp # This can be a hole, but I'm going to be careful about file # creation in there, so don't panic. :^) # Parse options while [ 0 ]; do if [ "$1" = "--linkadd" -o "$1" = "-l" ]; then if [ "$2" = "y" ]; then LINKADD=y elif [ "$2" = "n" ]; then LINKADD=n else usage exit 2 fi shift 2 elif [ "$1" = "--chown" -o "$1" = "-c" ]; then if [ "$2" = "y" ]; then CHOWN=y elif [ "$2" = "n" ]; then CHOWN=n else usage exit 2 fi shift 2 elif [ "$1" = "-h" -o "$1" = "-H" -o "$1" = "--help" -o $# = 0 ]; then usage exit 0 else break fi done echo echo "Slackware package maker, version 2.0." PACKAGE_NAME=$1 TARGET_NAME="`dirname $PACKAGE_NAME`" PACKAGE_NAME="`basename $PACKAGE_NAME`" TAR_NAME="`basename $PACKAGE_NAME .tgz`" echo echo "Searching for symbolic links:" # Get rid of possible pre-existing trouble: INST=`mktemp $TMP/makepkg.XXXXXX` find . -type l -exec ls -l {} \; | while read foo ; do echo $foo ; done | cut -f 9- -d ' ' | cut -b3- | tee $INST if [ ! "`cat $INST`" = "" ]; then echo echo "Making symbolic link creation script:" make_install_script $INST | tee doinst.sh fi echo if [ ! "`cat $INST`" = "" ]; then if [ -r install/doinst.sh ]; then echo "Unless your existing installation script already comtains the code" echo "to create these links, you should append these lines to your existing" echo "install script. Now's your chance. :^)" echo echo "Would you like to add this stuff to the existing install script and" echo -n "remove the symbolic links ([y]es, [n]o)? " else echo "It is recommended that you make these lines your new installation script." echo echo "Would you like to make this stuff the install script for this package" echo -n "and remove the symbolic links ([y]es, [n]o)? " fi if [ ! "$LINKADD" ]; then read LINKADD; echo else echo $LINKADD echo fi if [ "$LINKADD" = "y" ]; then if [ -r install/doinst.sh ]; then UPDATE="t" cat doinst.sh >> install/doinst.sh else mkdir install cat doinst.sh > install/doinst.sh fi echo echo "Removing symbolic links:" find . -type l -exec rm -v {} \; echo if [ "$UPDATE" = "t" ]; then echo "Updating your ./install/doinst.sh..." else echo "Creating your new ./install/doinst.sh..." fi fi else echo "No symbolic links were found, so we won't make an installation script." echo "You can make your own later in ./install/doinst.sh and rebuild the" echo "package if you like." fi rm -f doinst.sh $INST echo echo "This next step is optional - you can set the directories in your package" echo "to some sane permissions. If any of the directories in your package have" echo "special permissions, then DO NOT reset them here!" echo echo "Would you like to reset all directory permissions to 755 (drwxr-xr-x) and" echo -n "directory ownerships to root.root ([y]es, [n]o)? " if [ ! "$CHOWN" ]; then read CHOWN; echo else echo $CHOWN echo fi if [ "$CHOWN" = "y" ]; then find . -type d -exec chmod -v 755 {} \; find . -type d -exec chown -v root.root {} \; fi echo echo "Creating tar file $TAR_NAME.tar..." echo $TAR cvf $TAR_NAME.tar . # Warn of zero-length files: find . -type f -size 0c | while read file ; do echo "WARNING: zero length file $file" done find . -type f -name '*.gz' -size 20c | while read file ; do echo "WARNING: possible empty gzipped file $file" done echo echo "Gzipping $TAR_NAME.tar..." gzip -9 $TAR_NAME.tar echo echo "Renaming $TAR_NAME.tar.gz to $PACKAGE_NAME..." mv $TAR_NAME.tar.gz $PACKAGE_NAME if [ ! "$TARGET_NAME" = "." ]; then echo echo "Moving $PACKAGE_NAME to $TARGET_NAME..." mv $PACKAGE_NAME $TARGET_NAME fi echo echo "Package creation complete." echo --------------010209080906080601010708 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs --------------010209080906080601010708-- **= Email 4 ==========================** Date: Fri, 22 Aug 2003 20:08:54 -0400 From: "T.Sikora" Subject: makepkg This is a multi-part message in MIME format. --------------010209080906080601010708 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Michael you feel ambitious? Could you convert this(makepkg) for inclusion in the ux2_base pkgtools? Here's a make slackware(package) makefile routine. We can add something similar to build.cmd for a 'build -pkg' routine. slackware: all mkdir /tmp/sqlrelay-$(SQLR_VERSION) make prefix=/tmp/sqlrelay-$(SQLR_VERSION)/$(prefix) \ PYTHONDIR=/tmp/sqlrelay-$(SQLR_VERSION)/$(PYTHONDIR) \ ZOPEDIR=/tmp/sqlrelay-$(SQLR_VERSION)/$(ZOPEDIR) \ PHPEXTDIR=/tmp/sqlrelay-$(SQLR_VERSION)/$(PHPEXTDIR) \ TCLLIBSPATH=/tmp/sqlrelay-$(SQLR_VERSION)/$(TCLLIBSPATH) \ PREFIX=/tmp/sqlrelay-$(SQLR_VERSION)/$(PERLPREFIX) \ initroot=/tmp/sqlrelay-$(SQLR_VERSION) \ HAVE_RUBY="" \ install if ( test -n "$(HAVE_RUBY)" ); then \ make DESTDIR=/tmp/sqlrelay-$(SQLR_VERSION) \ -C src/api/ruby -f Makefile.install install; \ fi cd /tmp/sqlrelay-$(SQLR_VERSION); makepkg sqlrelay-$(SQLR_VERSION).tgz mv /tmp/sqlrelay-$(SQLR_VERSION)/sqlrelay-$(SQLR_VERSION).tgz $(PWD) $(RMTREE) /tmp/sqlrelay-$(SQLR_VERSION) -- T.Sikora tsikora at ntplx dot net --------------010209080906080601010708 Content-Type: text/plain; name="makepkg" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="makepkg" #!/bin/sh # Copyright 1994, 1998 Patrick Volkerding, Moorhead, Minnesota USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright # notice, this list of conditions and the following disclaimer. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # # Wed Mar 18 15:32:33 CST 1998 # Patched to avoid possible symlink attacks in /tmp. TAR=tar-1.13 $TAR --help 1> /dev/null 2> /dev/null if [ ! $? = 0 ]; then TAR=tar fi if [ ! "`LC_MESSAGES=C $TAR --version`" = "tar (GNU tar) 1.13 Copyright (C) 1988, 92,93,94,95,96,97,98, 1999 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by John Gilmore and Jay Fenlason." ]; then echo "WARNING: pkgtools are unstable with tar > 1.13." echo " You should provide a \"tar-1.13\" in your \$PATH." sleep 5 fi make_install_script() { COUNT=1 LINE="`sed -n "$COUNT p" $1`" while [ ! "$LINE" = "" ]; do LINKGOESIN="`echo "$LINE" | cut -f 1 -d " "`" LINKGOESIN="`dirname $LINKGOESIN`" LINKNAMEIS="`echo "$LINE" | cut -f 1 -d ' '`" LINKNAMEIS="`basename "$LINKNAMEIS"`" LINKPOINTSTO="`echo "$LINE" | cut -f 3 -d ' '`" echo "( cd $LINKGOESIN ; rm -rf $LINKNAMEIS )" echo "( cd $LINKGOESIN ; ln -sf $LINKPOINTSTO $LINKNAMEIS )" COUNT=`expr $COUNT + 1` LINE="`sed -n "$COUNT p" $1`" done } usage() { cat << EOF Usage: makepkg package_name.tgz Makes a Slackware compatible "*.tgz" package containing the contents of the current and all subdirectories. If symbolic links exist, they will be removed and an installation script will be made to recreate them later. This script will be called "install/doinst.sh". You may add any of your own ash-compatible shell scripts to this file and rebuild the package if you wish. options: -l, --linkadd y|n (moves symlinks into doinst.sh: recommended) -c, --chown y|n (resets all permissions to root:root 755 - not generally recommended) If these options are not set, makepkg will prompt as appropriate. EOF } TMP=/tmp # This can be a hole, but I'm going to be careful about file # creation in there, so don't panic. :^) # Parse options while [ 0 ]; do if [ "$1" = "--linkadd" -o "$1" = "-l" ]; then if [ "$2" = "y" ]; then LINKADD=y elif [ "$2" = "n" ]; then LINKADD=n else usage exit 2 fi shift 2 elif [ "$1" = "--chown" -o "$1" = "-c" ]; then if [ "$2" = "y" ]; then CHOWN=y elif [ "$2" = "n" ]; then CHOWN=n else usage exit 2 fi shift 2 elif [ "$1" = "-h" -o "$1" = "-H" -o "$1" = "--help" -o $# = 0 ]; then usage exit 0 else break fi done echo echo "Slackware package maker, version 2.0." PACKAGE_NAME=$1 TARGET_NAME="`dirname $PACKAGE_NAME`" PACKAGE_NAME="`basename $PACKAGE_NAME`" TAR_NAME="`basename $PACKAGE_NAME .tgz`" echo echo "Searching for symbolic links:" # Get rid of possible pre-existing trouble: INST=`mktemp $TMP/makepkg.XXXXXX` find . -type l -exec ls -l {} \; | while read foo ; do echo $foo ; done | cut -f 9- -d ' ' | cut -b3- | tee $INST if [ ! "`cat $INST`" = "" ]; then echo echo "Making symbolic link creation script:" make_install_script $INST | tee doinst.sh fi echo if [ ! "`cat $INST`" = "" ]; then if [ -r install/doinst.sh ]; then echo "Unless your existing installation script already comtains the code" echo "to create these links, you should append these lines to your existing" echo "install script. Now's your chance. :^)" echo echo "Would you like to add this stuff to the existing install script and" echo -n "remove the symbolic links ([y]es, [n]o)? " else echo "It is recommended that you make these lines your new installation script." echo echo "Would you like to make this stuff the install script for this package" echo -n "and remove the symbolic links ([y]es, [n]o)? " fi if [ ! "$LINKADD" ]; then read LINKADD; echo else echo $LINKADD echo fi if [ "$LINKADD" = "y" ]; then if [ -r install/doinst.sh ]; then UPDATE="t" cat doinst.sh >> install/doinst.sh else mkdir install cat doinst.sh > install/doinst.sh fi echo echo "Removing symbolic links:" find . -type l -exec rm -v {} \; echo if [ "$UPDATE" = "t" ]; then echo "Updating your ./install/doinst.sh..." else echo "Creating your new ./install/doinst.sh..." fi fi else echo "No symbolic links were found, so we won't make an installation script." echo "You can make your own later in ./install/doinst.sh and rebuild the" echo "package if you like." fi rm -f doinst.sh $INST echo echo "This next step is optional - you can set the directories in your package" echo "to some sane permissions. If any of the directories in your package have" echo "special permissions, then DO NOT reset them here!" echo echo "Would you like to reset all directory permissions to 755 (drwxr-xr-x) and" echo -n "directory ownerships to root.root ([y]es, [n]o)? " if [ ! "$CHOWN" ]; then read CHOWN; echo else echo $CHOWN echo fi if [ "$CHOWN" = "y" ]; then find . -type d -exec chmod -v 755 {} \; find . -type d -exec chown -v root.root {} \; fi echo echo "Creating tar file $TAR_NAME.tar..." echo $TAR cvf $TAR_NAME.tar . # Warn of zero-length files: find . -type f -size 0c | while read file ; do echo "WARNING: zero length file $file" done find . -type f -name '*.gz' -size 20c | while read file ; do echo "WARNING: possible empty gzipped file $file" done echo echo "Gzipping $TAR_NAME.tar..." gzip -9 $TAR_NAME.tar echo echo "Renaming $TAR_NAME.tar.gz to $PACKAGE_NAME..." mv $TAR_NAME.tar.gz $PACKAGE_NAME if [ ! "$TARGET_NAME" = "." ]; then echo echo "Moving $PACKAGE_NAME to $TARGET_NAME..." mv $PACKAGE_NAME $TARGET_NAME fi echo echo "Package creation complete." echo --------------010209080906080601010708-- **= Email 5 ==========================** Date: Fri, 22 Aug 2003 23:37:26 +0200 (CEST) From: "Christian Hennecke" Subject: Re: -h6072 On Fri, 22 Aug 2003 12:05:24 -0400, T.Sikora wrote: >What exactly does this do? SET emxopt=-c -n -h6072 -!0x800 >John has UX2 set at -h2048. I set it so long ago I forgot why. It determines number of file handles that emx is able to use IIRC. Christian Hennecke