X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=SPECS%2Fbuild-nmh-cygwin;h=47bcdd930b7fa55aafdd49cdba89a8f714e338d3;hb=674c6f70fa9371ce754daddc0441fff26279a54c;hp=620836d7b898170ba959b09afa822af22ef139aa;hpb=fa87949f51fea475ba7c19a2aac57f49eebb56a2;p=mmh diff --git a/SPECS/build-nmh-cygwin b/SPECS/build-nmh-cygwin index 620836d..47bcdd9 100755 --- a/SPECS/build-nmh-cygwin +++ b/SPECS/build-nmh-cygwin @@ -62,9 +62,6 @@ export REL=`echo $tscriptname | sed -e "s/${PKG}\-${VER}\([+-]\)/\1/"` # from the upstream package name, you will want to redefine BASEPKG. # Example: For Apache 2, BASEPKG=httpd-2.x.xx but SHORTPKG=apache2-2.x.xx # -# Change from generic-build-script: added DISABLE_SETGID_MAIL=1 so that -# install will not try to chgrp/chmod bin/inc. -export DISABLE_SETGID_MAIL=1 # Change from generic-build-script: added -${REL} to BASEPKG. export BASEPKG=${PKG}-${VER}${REL} export SHORTPKG=${PKG}-${VER} @@ -74,9 +71,11 @@ export FULLPKG=${SHORTPKG}${REL} export src_orig_pkg_name= if [ -e "${src_orig_pkg_name}" ] ; then export opt_decomp=? # Make sure tar punts if unpack() is not redefined -elif [ -e ${BASEPKG}.tar.bz2 ] ; then - export opt_decomp=j - export src_orig_pkg_name=${BASEPKG}.tar.bz2 +# Change from generic-build-script: ${BASEPKG}.tar.bz2 is an output of +# this script, so don't trip over it on a rerun. +# elif [ -e ${BASEPKG}.tar.bz2 ] ; then +# export opt_decomp=j +# export src_orig_pkg_name=${BASEPKG}.tar.bz2 elif [ -e ${BASEPKG}.tar.gz ] ; then export opt_decomp=z export src_orig_pkg_name=${BASEPKG}.tar.gz @@ -237,12 +236,14 @@ mkdirs_log() { } # Unpack the original tarball, and get everything set up for this script. +# Change from generic-build-script: cd to ${srcdir} instead of ${topdir}. +# Change from generic-build-script: use -p1 instead of -p0 patch option. prep() { (cd ${topdir} && \ unpack ${src_orig_pkg} && \ - cd ${topdir} && \ + cd ${srcdir} && \ if [ -f ${src_patch} ] ; then \ - patch -Z -p0 < ${src_patch} ;\ + patch -Z -p1 < ${src_patch} ;\ fi && \ mkdirs ) }