From: hackbard Date: Mon, 26 Jul 2004 09:42:55 +0000 (+0000) Subject: CHANGELOG 2004-07-26 X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=b756476d01e1ff39de954cc625e4e4744ff30841;p=hdw-linux%2Fhdw-linux.git CHANGELOG 2004-07-26 --- diff --git a/doc/CHANGELOG b/doc/CHANGELOG index ef6da60..96f76a8 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -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 index 0000000..022cb7e --- /dev/null +++ b/packages/hackbard/sendmail/no_user_smmsp.patch @@ -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 diff --git a/packages/hackbard/sendmail/sendmail.setup b/packages/hackbard/sendmail/sendmail.setup index 5a8ea75..8a1a76e 100644 --- a/packages/hackbard/sendmail/sendmail.setup +++ b/packages/hackbard/sendmail/sendmail.setup @@ -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() { diff --git a/packages/hackbard/xdirectfb/xdirectfb b/packages/hackbard/xdirectfb/xdirectfb index 9a5b71d..2ab1b85 100644 --- a/packages/hackbard/xdirectfb/xdirectfb +++ b/packages/hackbard/xdirectfb/xdirectfb @@ -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 } diff --git a/packages/net/dhcp/dhcp b/packages/net/dhcp/dhcp index 63b7242..be83f32 100644 --- a/packages/net/dhcp/dhcp +++ b/packages/net/dhcp/dhcp @@ -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 } diff --git a/scripts/Build b/scripts/Build index 4d1bb3c..1dbe2fe 100755 --- a/scripts/Build +++ b/scripts/Build @@ -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 diff --git a/scripts/Build-Distro b/scripts/Build-Distro index e1f1dd1..94b12eb 100755 --- a/scripts/Build-Distro +++ b/scripts/Build-Distro @@ -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 \ diff --git a/scripts/Create-Binary b/scripts/Create-Binary index 2272327..35d33a5 100755 --- a/scripts/Create-Binary +++ b/scripts/Create-Binary @@ -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