]> hackdaworld.org Git - hdw-linux/hdw-linux.git/commitdiff
CHANGELOG 2004-07-26
authorhackbard <hackbard>
Mon, 26 Jul 2004 09:42:55 +0000 (09:42 +0000)
committerhackbard <hackbard>
Mon, 26 Jul 2004 09:42:55 +0000 (09:42 +0000)
doc/CHANGELOG
packages/hackbard/sendmail/no_user_smmsp.patch [new file with mode: 0644]
packages/hackbard/sendmail/sendmail.setup
packages/hackbard/xdirectfb/xdirectfb
packages/net/dhcp/dhcp
scripts/Build
scripts/Build-Distro
scripts/Create-Binary

index ef6da608b7676425d1a3f3a00b07f3100490cb06..96f76a80207895abe0eee69ef37501904dadabf7 100644 (file)
@@ -1,3 +1,11 @@
+*) 2004-07-26
+
+- fixed sendmail, added patch
+- fixed xdirectfb + changed prefix to /opt
+- fixed dhcp documentation related bug
+- fixed Create-Binary script to use right package dir names
+- implemented runtime dependency check (final)
+
 *) 2004-07-25
 
 - implemented runtime dependency checks for each build, still dev!
diff --git a/packages/hackbard/sendmail/no_user_smmsp.patch b/packages/hackbard/sendmail/no_user_smmsp.patch
new file mode 100644 (file)
index 0000000..022cb7e
--- /dev/null
@@ -0,0 +1,19 @@
+--- ./sendmail/Makefile.m4.orig        2004-07-26 12:35:05.000000000 +0200
++++ ./sendmail/Makefile.m4     2004-07-26 12:38:16.000000000 +0200
+@@ -53,7 +53,6 @@
+       @echo "You must have setup a new user ${MSPQOWN} and a new group ${GBINGRP}"
+       @echo "as explained in sendmail/SECURITY."
+       mkdir -p ${DESTDIR}${MSPQ}
+-      chown ${MSPQOWN} ${DESTDIR}${MSPQ}
+       chgrp ${GBINGRP} ${DESTDIR}${MSPQ}
+       chmod 0770 ${DESTDIR}${MSPQ}
+@@ -89,7 +88,7 @@
+       ${INSTALL} -c -o ${SBINOWN} -g ${UBINGRP} -m ifdef(`confSTMODE', `confSTMODE', `0600') statistics ${DESTDIR}${STPATH}
+ install-submit-st: statistics ${DESTDIR}${MSPQ}
+-      ${INSTALL} -c -o ${MSPQOWN} -g ${GBINGRP} -m ifdef(`confSTMODE', `confSTMODE', `0600') statistics ${DESTDIR}${MSPQ}/${MSPSTFILE}
++      ${INSTALL} -c -g ${GBINGRP} -m ifdef(`confSTMODE', `confSTMODE', `0600') statistics ${DESTDIR}${MSPQ}/${MSPSTFILE}
+ divert(0)
+ bldPRODUCT_END
index 5a8ea7563068f756a0c4e437ff1678b34d006320..8a1a76e7d561d9be48f44ae2c69bbd9616369847 100644 (file)
@@ -3,6 +3,9 @@ setup_block()   {
        chmod 1777 /tmp
        chmod 1777 /var/mail
        mkdir -p /var/spool/mqueue
+       chown smmsp /var/spool/clientmqueue
+       [ -f /var/spool/clientmqueue/sm-client.st ] && \
+               chown smmsp /var/spool/clientmqueue/sm-client.st
                }
 
 uninstall_block()      {
index 9a5b71de0e491ca23176a91eb74279117d32d044..2ab1b85475d78c36d77e2bc7e65b73173ccae34f 100644 (file)
@@ -17,13 +17,19 @@ build_main()        {
        echo "applying xdirectfb patch ..."
        cd ../xc &&
        patch -Nfp0 < ../${srcdir}/xc-directfb.diff &&
-       patch -Nfp1 < ../${srcdir}/xc-transparency-extension.diff
 
        echo "copying over files ..."
        cp -a ../${srcdir}/programs/Xserver/hw/directfb \
-               programs/Xserver/hw/ &&
-       cp -a ../${srcdir}/config/cf/* config/cf/ &&
+               programs/Xserver/hw/
+       cp -a ../${srcdir}/programs/Xserver/GL/directfb \
+               programs/Xserver/GL/
+       cp -a ../${srcdir}/lib/GL/directfb lib/GL/
+       cp -a ../${srcdir}/config/cf/* config/cf/
 
-       echo "not patching host.def - we build this in $prefix/local ..."
+       echo "patching host.def - prefix /opt/xdirectfb ..."
+       sed "s%/usr/local/X11R6%$root/opt/xdirectfb%g" config/cf/host.def > t~
+       mv t~ config/cf/host.def
+
+       echo "building rootless xserver now ..."
        make World && make install
                }
index 63b7242c970628f79146053c07bdffb020abed3b..be83f32bab06dc835b6a50b85dbe8ada89790d0f 100644 (file)
@@ -27,5 +27,5 @@ post_install()        {
        
        # documentation and config files
        rm -rf $docdir && mkdir -p $docdir
-       cp -v doc/* client/dhclient.conf server/dhcpd.conf $docdir
+       cp -v doc/[!j]* client/dhclient.conf server/dhcpd.conf $docdir
                }
index 4d1bb3cda45478032c91409e8569eafd39cde53b..1dbe2fe74f5b5e0622d7381ef5878f934aa79adf 100755 (executable)
@@ -351,7 +351,7 @@ echo "found $package config file ..."
        # build/runtime dependencies (just libs >= stage 3, 
        # default is 'hardcoded')
        # still in development !!
-       if [ "$hdw_status" -ge "2" ] ; then
+       if [ "$hdw_status" -ge "3" ] ; then
                # build deps
                rm -f $root/var/adm/deps/build/$package
                echo -n "calculating build dependencies ... "
@@ -375,6 +375,7 @@ echo "found $package config file ..."
                for dep in $alldeps; do
                        echo "$dep" >> $root/var/adm/deps/build/$package
                done
+               touch $root/var/adm/deps/build/$package
                echo "done"
                # runtime deps
                rm -f $root/var/adm/deps/run/$package
@@ -383,32 +384,47 @@ echo "found $package config file ..."
                for binary in `grep 'bin\/' \
                                $root/var/adm/flists/${package}${append} | \
                                awk '{ print $2 }'`; do
-                       for rdep in `ldd $root/$binary | awk '{ print $3 }' | \
-                                       sed 's$/$$'i | grep -v stage | \
-                                       awk -F: '{ print $2 }'`; do
-                               add=1
-                               for cmp in $alldeps; do
-                                       [ "$cmp" = "rdep" ] && add=0
+                       for rdep in `ldd $root/$binary 2>&1 | \
+                                       awk '{ print $3 }' | \
+                                       sed 's$/$$' | grep -v 'dynamic' | \
+                                       grep -v '^ldd'`; do
+                               for rpkg in `grep $rdep -r \
+                                               $root/var/adm/flists | \
+                                               grep -v $s1_prefix | \
+                                               awk -F: '{ print $2 }'`; do
+                                       add=1
+                                       for cmp in $alldeps; do
+                                               [ "$cmp" = "$rpkg" ] && add=0
+                                       done
+                                       [ "$add" = "1" ] && \
+                                               alldeps="$rpkg $alldeps"
                                done
-                               [ "$add" = "1" ] && alldeps="$rdep $alldeps"
                        done
                done
                for library in `grep 'lib\/.*.so.*' \
                                $root/var/adm/flists/${package}${append} | \
                                awk '{ print $2 }'`; do
-                       for rdep in `ldd $root/$binary | awk '{ print $3 }' | \
-                                       sed 's$/$$'i | grep -v stage | \
-                                       awk -F: '{ print $2 }'`; do
-                               add=1
-                               for cmp in $alldeps; do
-                                       [ "$cmp" = "rdep" ] && add=0
+                       for rdep in `ldd $root/$library 2>&1 | \
+                                       awk '{ print $3 }' | \
+                                       sed 's$/$$' | grep -v 'dynamic' | \
+                                       grep -v '^ldd'`; do
+                               for rpkg in `grep $rdep -r \
+                                               $root/var/adm/flists | \
+                                               grep -v $s1_prefix | \
+                                               awk -F: '{ print $2 }'`; do
+                                       add=1
+                                       for cmp in $alldeps; do
+                                               [ "$cmp" = "$rpkg" ] && add=0
+                                       done
+                                       [ "$add" = "1" ] && \
+                                               alldeps="$rpkg $alldeps"
                                done
-                               [ "$add" = "1" ] && alldeps="$rdep $alldeps"
                        done
                done
                for dep in $alldeps; do
                        echo "$dep" >> $root/var/adm/deps/run/$package
                done
+               touch $root/var/adm/deps/run/$package
                echo "done"
        fi
        
index e1f1dd181e1c2b079bb9d0e786cbd90031b373e5..94b12eb347bf47b2e065dc23c11c46acfd70c648 100755 (executable)
@@ -116,6 +116,10 @@ for stage in $stages; do
                                if [ "$hdw_make_package" = "1" -a \
                                     "$hdw_status" -ge "2" ] ; then
                                        echo -n "creating binary package ..."
+                                       if [ -d binaries/*/$package ] ; then
+                                               echo -n " (deleting old first)"
+                                               rm -rf binaries/*/$package
+                                       fi
                                        ./scripts/Create-Binary \
                                                -package $package-$pr \
                                                -tar-name $package \
index 2272327886f1f7b979e51dbdb3520ede55a39d5a..35d33a5667fae99430ad79e98199c8f4b8727cbe 100755 (executable)
@@ -42,13 +42,14 @@ if [ ! -z "$hdw_arch_opt" ]; then
 else
        bin_dir=${hdw_arch}-generic
 fi
+pkg_dir=`echo $package | sed 's%-[0-9]%%'`
 mkdir -p binaries/$bin_dir
 
 # single package
 if [  "$package" != "all" ] ; then
-if [ -d ./binaries/$bin_dir/${package} ] ; then
+if [ -d ./binaries/$bin_dir/${pkg_dir} ] ; then
        echo "$package binary already exists, skipped"
-       echo "(remove ./binaries/$bin_dir/$package to recreate it)"
+       echo "(remove ./binaries/$bin_dir/${pkg_dir} to recreate it)"
        exit 0
 else
        # does it exist?
@@ -57,16 +58,16 @@ else
                exit 0
        else
                echo "creating binary tarball of $package"
-               mkdir -p $hdw_home_dir/binaries/$bin_dir/$package &&
+               mkdir -p $hdw_home_dir/binaries/$bin_dir/${pkg_dir} &&
                cd $hdw_build_dir &&
                # which files do we need?
                fl_file="var/adm/flists/$package"
                cat $fl_file | awk '{ print $2 }' | \
                tar --no-recursion --use-compress-program=bzip2 \
-               -cf $hdw_home_dir/binaries/$bin_dir/$package/$tar_name.tar.bz2 \
+               -cf $hdw_home_dir/binaries/$bin_dir/${pkg_dir}/$tar_name.tar.bz2 \
                -T -
                cp $hdw_build_dir/var/adm/flists/$package \
-                       $hdw_home_dir/binaries/$bin_dir/$package
+                       $hdw_home_dir/binaries/$bin_dir/${pkg_dir}
                cd $hdw_home_dir
                echo "done"
        fi