- Timestamp:
- Nov 26, 2006, 10:46:08 PM (18 years ago)
- Location:
- branches/2.2.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0/mindi-busybox/distributions/debian/rules
r823 r983 9 9 PACKAGE_NAME = mindi-busybox 10 10 11 configure: 12 # Nothing to configure in this package. 11 # These are used for cross-compiling and for saving the configure script 12 # from having to guess our platform (since we know it already) 13 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) 14 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) 13 15 14 build: 15 # Nothing to build in this package. 16 CFLAGS = -Wall 17 18 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) 19 CFLAGS += -O0 20 else 21 CFLAGS += -O2 22 endif 23 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) 24 INSTALL_PROGRAM += -s 25 endif 26 27 config.status: configure 28 dh_testdir 29 # Configure the package. 30 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr 31 32 # Build both architecture dependent and independent 33 build: build-arch build-indep 34 35 # Build architecture dependent 36 build-arch: build-arch-stamp 37 38 build-arch-stamp: config.status 39 dh_testdir 40 41 # Compile the package. 42 $(MAKE) oldconfig 43 $(MAKE) busybox 44 45 touch build-stamp 46 47 # Build architecture independent 48 build-indep: build-indep-stamp 49 50 build-indep-stamp: config.status 51 # Nothing to do, the only indep item is the manual which is available as html in original source 52 touch build-indep-stamp 16 53 17 54 clean: 18 55 dh_testdir 19 56 dh_testroot 57 rm -f build-arch-stamp build-indep-stamp 58 # Clean temporary document directory 59 rm -rf debian/doc-temp 60 # Clean up. 61 -$(MAKE) distclean 62 rm -f config.log 63 ifneq "$(wildcard /usr/share/misc/config.sub)" "" 64 cp -f /usr/share/misc/config.sub config.sub 65 endif 66 ifneq "$(wildcard /usr/share/misc/config.guess)" "" 67 cp -f /usr/share/misc/config.guess config.guess 68 endif 69 20 70 dh_clean 21 71 22 install: 72 # Install architecture dependent and independent 73 install: install-arch install-indep 74 75 # Install architecture dependent 76 install-arch: build-arch 23 77 dh_testdir 24 78 dh_testroot 25 dh_clean -k 26 dh_installdirs 27 # Build the installation tree: 28 ( export RPMBUILDMINDI=true && export PREFIX=$(CURDIR)/debian/$(PACKAGE_NAME)/usr && export CONFDIR=$(CURDIR)/debian/$(PACKAGE_NAME)/etc && ./install.sh ) 79 dh_clean -k -s 80 dh_installdirs -s 29 81 30 # Build architecture-independent files here. 31 binary-indep: install 32 # We have nothing to do by default. 82 # Install the package files into build directory: 83 # - start with upstream make install 84 $(MAKE) install PREFIX=$(CURDIR)/debian/$(PACKAGE_NAME)/usr/lib/mindi/rootfs 85 # - copy doc 86 mkdir -p debian/doc-temp 87 cp -a ChangeLog INSTALL LICENSE AUTHORS README TODO changelog svn.log debian/doc-temp/html 33 88 34 # Build architecture-dependent files here. 35 binary-arch: install 89 dh_install -s 90 91 # Install architecture independent 92 install-indep: build-indep 93 dh_testdir 94 dh_testroot 95 dh_clean -k -i 96 dh_installdirs -i 97 dh_install -i 98 99 # Must not depend on anything. This is to be called by 100 # binary-arch/binary-indep 101 # in another 'make' thread. 102 binary-common: 36 103 dh_testdir 37 104 dh_testroot 38 105 dh_installchangelogs ChangeLog 39 106 dh_installdocs 40 dh_install examples107 dh_installman 41 108 dh_link 42 109 dh_strip … … 44 111 dh_fixperms 45 112 dh_installdeb 113 dh_shlibdeps 46 114 dh_gencontrol 47 115 dh_md5sums 48 116 dh_builddeb 49 117 50 binary: binary-indep binary-arch 51 .PHONY: build clean binary-indep binary-arch binary install configure 118 # Build architecture independant packages using the common target. 119 binary-indep: build-indep install-indep 120 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common 121 122 # Build architecture dependant packages using the common target. 123 binary-arch: build-arch install-arch 124 $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common 125 126 # Build architecture depdendent and independent packages 127 binary: binary-arch binary-indep 128 .PHONY: clean binary -
branches/2.2.0/tools/pkg2mdv
r921 r983 43 43 for p in $c; do 44 44 src=${TOPDIR}/${VER}-$TAG/$p-[1-9]*.tar.bz2 45 s=`basename $src` 46 oldver=`echo $s | sed "s/$p-\([1-9][0-9.]*\).tar.bz2/\1/"` 47 newver=`echo $oldver | sed 's/\([0-9]\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1.\2\3/'` 45 48 distro=`ls -d ${TOPDIR}/${VER}-$TAG/$p-[1-9]*/distributions/mandriva-* | tail -1` 46 49 spec=${distro}/$p.spec 47 50 echo "Updating Mandriva package in $SVNMDV/$p" 48 mkdir -p $SVNMDV/$p/SOURCES $SVNMDV/$p/SPECS 49 rm -f $SVNMDV/$p/SOURCES/$p-*.tar.bz2 $SVNMDV/$p/SPECS/$p.spec 50 cp -a $src $SVNMDV/$p/SOURCES 51 cp -a $spec $SVNMDV/$p/SPECS 51 cd $SVNMDV/$p 52 mkdir -p SOURCES SPECS 53 echo "Modifying $oldver => $newver" 54 svn del --force SOURCES/$p-*.tar.bz2 55 cp -a $src SOURCES/$p-$newver.tar.bz2 56 tar xfj SOURCES/$p-$newver.tar.bz2 57 mv $p-$oldver $p-$newver 58 perl -pi -e "s/$oldver/$newver/" $p-$newver/VERSION 59 tar cfj SOURCES/$p-$newver.tar.bz2 $p-$newver 60 rm -rf $p-$newver 61 svn add SOURCES/$p-$newver.tar.bz2 62 cp -a $spec SPECS 52 63 # Use mkrel for mdv 53 perl -pi -e "s/^Release:[ \t]+..*/Release: %mkrel $TAG/" $SVNMDV/$p/SPECS/$p.spec 54 perl -pi -e 's/ Bruno Cornec <bruno@mondorescue.org>..*/ Bruno Cornec <bcornec@mandriva.org> %{version}-%{release}/' $SVNMDV/$p/SPECS/$p.spec 64 perl -pi -e "s/^Release:[ \t]+..*/Release: %mkrel $TAG/" SPECS/$p.spec 65 perl -pi -e 's/^Version:[ \t]+([0-9])\.([0-9]+)\.([0-9]+)/Version: $1.$2$3/' SPECS/$p.spec 66 perl -pi -e 's/mindi >= ..*,/mindi/' SPECS/$p.spec 67 $TOOLHOME/mdv-changelog.pl SPECS/$p.spec 55 68 # Changelog management 56 echo "Committing from $SVNMDV/$p into Mandriva's SVN" 57 cd $SVNMDV/$p 69 echo "Building packages" 58 70 bm 59 71 if [ $? -eq 0 ]; then 60 rm -rf BUILD RPMS SRPMS 61 #svn ci 72 rm -rf BUILD RPMS SRPMS BUILDROOT 73 echo "Committing from $SVNMDV/$p into Mandriva's SVN" 74 svn ci -F $MONDOTMP/cmt.spec 75 if [ $? -eq 0 ]; then 76 svn up 77 rm -f $MONDOTMP/cmt.spec 78 echo "Building on Mandriva's cluster" 79 ssh $ACCOUNT $DSTNODE "yr $p" 80 fi 62 81 fi 63 82 done 64 83 65 #ssh chroot\${d} "for p in $aspkg; do rpm -ivh \`basename \$p\` ; rpmbuild -ba rpm/SPECS/\$s | tee -a /tmp/mondorescue.log ; done ; sudo ftp\${d}contrib \`egrep '^Wrote:' /tmp/mondorescue.log | grep -v debug | cut -d: -f2\`" 84 rm -rf $MONDOTMP 85 66 86 ) 2>&1 | tee /tmp/pk2mdv.log
Note:
See TracChangeset
for help on using the changeset viewer.