OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Matthias Kurz Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 24-Sep-2005 14:12:30 Branch: HEAD Handle: 2005092413122700 Modified files: openpkg-src/openpkg HISTORY openpkg.spec Log: more IRIX 6.x support Summary: Revision Changes Path 1.296 +1 -0 openpkg-src/openpkg/HISTORY 1.451 +69 -2 openpkg-src/openpkg/openpkg.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/openpkg/HISTORY ============================================================================ $ cvs diff -u -r1.295 -r1.296 HISTORY --- openpkg-src/openpkg/HISTORY 24 Sep 2005 10:41:05 -0000 1.295 +++ openpkg-src/openpkg/HISTORY 24 Sep 2005 12:12:27 -0000 1.296 @@ -2,6 +2,7 @@ 2005 ==== +20050924 more IRIX 6.x support 20050924 upgrade to OSSP uuid 1.3.1 20050923 fix rpm/configure not detecting inet_aton, causing rpmio.c fail with gcc4 20050920 fix init script for Gentoo Linux to ensure startup as very last service @@ . patch -p0 <<'@@ .' Index: openpkg-src/openpkg/openpkg.spec ============================================================================ $ cvs diff -u -r1.450 -r1.451 openpkg.spec --- openpkg-src/openpkg/openpkg.spec 24 Sep 2005 10:41:05 -0000 1.450 +++ openpkg-src/openpkg/openpkg.spec 24 Sep 2005 12:12:27 -0000 1.451 @@ -428,6 +428,7 @@ Darwin/* ) l_build_path="/bin:/sbin:/usr/bin:/usr/sbin" ;; OSF1/V5.* ) l_build_path="/bin:/sbin:/usr/bin:/usr/sbin" ;; HP-UX/* ) l_build_path="/bin:/sbin:/usr/bin:/usr/sbin" ;; + IRIX*/6.* ) l_build_path="/bin:/sbin:/usr/bin:/usr/sbin" ;; * ) l_build_path="/bin:/sbin:/usr/bin:/usr/sbin" ;; esac case $plid in @@ -440,6 +441,7 @@ Darwin/* ) l_build_ldlp="/usr/lib" ;; OSF1/V5.* ) l_build_ldlp="/usr/lib" ;; HP-UX/* ) l_build_ldlp="/usr/lib" ;; + IRIX*/6.* ) l_build_ldlp="/usr/lib" ;; * ) l_build_ldlp="/usr/lib" ;; esac case $plid in @@ -796,8 +798,9 @@ CFLAGS="$CPPFLAGS" LDFLAGS="-L$br/zlib-%{V_zlib} -L$br/bzip2-%{V_bzip2} -L$br/beecrypt-%{V_beecrypt}" LIBS="$LDFLAGS -lz -lbz2 -lbeecrypt" - case "$os_name" in - SUNOS ) LIBS="$LIBS -lresolv" ;; + case $os_name in + SUNOS* ) LIBS="$LIBS -lresolv" ;; + IRIX* ) LIBS="$LIBS -lgen" ;; esac export CC CPPFLAGS CFLAGS LDFLAGS LIBS @@ -1518,6 +1521,14 @@ # intentionally do nothing here : ;; + IRIX*/6.* ) + file=/etc/passwd + entry="${usr}:*:${uid}:${gid}:${realname}:${prefix}:${shell}" + if [ -f /etc/shadow ] + then update="(PATH=\$PATH:/sbin; pwconv)" + else update=":" + fi + ;; esac case "$plid" in Darwin/* ) @@ -1952,6 +1963,28 @@ chmod 644 ${darwin_rc_dir}/StartupParameters.plist fi ;; + IRIX*/6.* ) + if [ ! -f /etc/init.d/${name} ]; then + # install transfer script + ( echo "#!/bin/sh" + echo "##" + echo "## ${name} -- startup/shutdown transfer script for OpenPKG ${prefix} hierarchy" + echo "##" + echo "" + echo "[ ! -f ${prefix}/etc/rc ] && exit 0" + echo "case \$1 in" + echo " start ) exec ${prefix}/etc/rc all start ;;" + echo " stop ) exec ${prefix}/etc/rc all stop ;;" + echo "esac" + ) >/etc/init.d/${name} + chmod 755 /etc/init.d/${name} + # create corresponding links + ( cd /etc + ln -f init.d/${name} rc2.d/S99${name} + ln -f init.d/${name} rc0.d/K00${name} + ) || exit $? + fi + ;; esac fi @@ -2022,6 +2055,21 @@ rm -f $EDITOR fi ;; + IRIX*/6.* ) + exists=`crontab -l | grep "$prefix/etc/rc"` + if [ ".$exists" = . ]; then + ( crontab -l + echo "# <OpenPKG prefix=$prefix pkg=openpkg>" + echo "# chronological tasks of ${prefix} OpenPKG hierarchy" + echo "0 0 1 * * [ -f ${prefix}/etc/rc ] && ${prefix}/etc/rc all monthly" + echo "0 0 * * 0 [ -f ${prefix}/etc/rc ] && ${prefix}/etc/rc all weekly" + echo "0 0 * * * [ -f ${prefix}/etc/rc ] && ${prefix}/etc/rc all daily" + echo "0 * * * * [ -f ${prefix}/etc/rc ] && ${prefix}/etc/rc all hourly" + echo "0,15,30,45 * * * * [ -f ${prefix}/etc/rc ] && ${prefix}/etc/rc all quarterly" + echo "# </OpenPKG>" + ) | /usr/bin/crontab || exit $? + fi + ;; esac fi @@ -2249,6 +2297,14 @@ Darwin/* ) niutil -destroy . "/users/${usr}" ;; + IRIX*/6.* ) + cp /etc/passwd /etc/passwd.bak && \ + grep -v "^${usr}:" /etc/passwd.bak >/etc/passwd + if [ -f /etc/shadow ] + then ( PATH="$PATH:/usr/sbin"; pwconv ) || exit $? + fi + rm -f /etc/passwd.bak >/dev/null 2>&1 + ;; esac fi fi @@ -2388,6 +2444,11 @@ rm -f /etc/hostconfig.bak >/dev/null 2>&1 rm -rf /System/Library/StartupItems/${name} >/dev/null 2>&1 ;; + IRIX*/6.* ) + rm -f /etc/init.d/${name} >/dev/null 2>&1 + rm -f /etc/rc2.d/S99${name} >/dev/null 2>&1 + rm -f /etc/rc0.d/K00${name} >/dev/null 2>&1 + ;; esac fi @@ -2437,6 +2498,12 @@ ( PATH="$PATH:/usr/bin"; crontab -e ) || exit $? rm -f $EDITOR ;; + IRIX*/6.* ) + p=`echo $prefix | sed -e 's;/;\\\\\\/;g'` + ( crontab -l | + sed -e "/<OpenPKG prefix=$p pkg=openpkg>/,/<\/OpenPKG>/d" + ) | /usr/bin/crontab || exit $? + ;; esac fi @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org