Fossil SCM
Remove the long-unmaintained debian/makedeb.sh, as discussed in [forum:5ab11b34d8326d52|forum post 5ab11b34d8326d52].
Commit
59bb3743987706f331367dcd13f2192943e3e25bddb30c35aa34417e2e86e4d8
Parent
0201a1e2cc7a54b…
1 file changed
-130
D
debian/makedeb.sh
-130
| --- a/debian/makedeb.sh | ||
| +++ b/debian/makedeb.sh | ||
| @@ -1,130 +0,0 @@ | ||
| 1 | -#!/bin/bash | |
| 2 | -# A quick hack to generate a Debian package of fossil. i took most of this | |
| 3 | -# from Martin Krafft's "The Debian System" book. | |
| 4 | - | |
| 5 | -DEB_REV=${1-1} # .deb package build/revision number. | |
| 6 | -PACKAGE_DEBNAME=fossil | |
| 7 | -THISDIR=${PWD} | |
| 8 | - | |
| 9 | -if uname -a | grep -i nexenta &>/dev/null; then | |
| 10 | -# Assume NexentaOS/GnuSolaris: | |
| 11 | - DEB_ARCH_NAME=solaris-i386 | |
| 12 | - DEB_ARCH_PKGDEPENDS="sunwcsl" # for -lsocket | |
| 13 | -else | |
| 14 | - DEB_ARCH_NAME=$(dpkg --print-architecture) | |
| 15 | -fi | |
| 16 | - | |
| 17 | -SRCDIR=$(cd ..; pwd) | |
| 18 | -test -e ${SRCDIR}/fossil || { | |
| 19 | - echo "This script must be run from a BUILT copy of the source tree." | |
| 20 | - exit 1 | |
| 21 | -} | |
| 22 | - | |
| 23 | -DEBROOT=$PWD/deb.tmp | |
| 24 | -test -d ${DEBROOT} && rm -fr ${DEBROOT} | |
| 25 | - | |
| 26 | -DEBLOCALPREFIX=${DEBROOT}/usr | |
| 27 | -BINDIR=${DEBLOCALPREFIX}/bin | |
| 28 | -mkdir -p ${BINDIR} | |
| 29 | -mkdir -p ${DEBLOCALPREFIX}/share/doc/${PACKAGE_DEBNAME} | |
| 30 | -cp ../fossil ${BINDIR} | |
| 31 | -strip ${BINDIR}/fossil | |
| 32 | - | |
| 33 | -cd $DEBROOT || { | |
| 34 | - echo "Debian dest dir [$DEBROOT] not found. :(" | |
| 35 | - exit 2 | |
| 36 | -} | |
| 37 | - | |
| 38 | - | |
| 39 | -rm -fr DEBIAN | |
| 40 | -mkdir DEBIAN | |
| 41 | - | |
| 42 | -PACKAGE_VERSION=$(date +%Y.%m.%d) | |
| 43 | -PACKAGE_DEB_VERSION=${PACKAGE_VERSION}-${DEB_REV} | |
| 44 | -DEBFILE=${THISDIR}/${PACKAGE_DEBNAME}-${PACKAGE_DEB_VERSION}-dev-${DEB_ARCH_NAME}.deb | |
| 45 | -PACKAGE_TIME=$(/bin/date) | |
| 46 | - | |
| 47 | -rm -f ${DEBFILE} | |
| 48 | -echo "Creating .deb package [${DEBFILE}]..." | |
| 49 | - | |
| 50 | -echo "Generating md5 sums..." | |
| 51 | -find ${DEBLOCALPREFIX} -type f -exec md5sum {} \; > DEBIAN/md5sums | |
| 52 | - | |
| 53 | -true && { | |
| 54 | - echo "Generating Debian-specific files..." | |
| 55 | - COPYRIGHT=${DEBLOCALPREFIX}/share/doc/${PACKAGE_DEBNAME}/copyright | |
| 56 | - cat <<EOF > ${COPYRIGHT} | |
| 57 | -This package was created by fossil-scm <[email protected]> | |
| 58 | -on ${PACKAGE_TIME}. | |
| 59 | - | |
| 60 | -The original sources for fossil can be downloaded for free from: | |
| 61 | - | |
| 62 | -http://fossil-scm.org/ | |
| 63 | - | |
| 64 | -fossil is released under the terms of the 2-clause BSD License. | |
| 65 | - | |
| 66 | -EOF | |
| 67 | -} | |
| 68 | - | |
| 69 | -true && { | |
| 70 | - CHANGELOG=${DEBLOCALPREFIX}/share/doc/${PACKAGE_DEBNAME}/changelog.gz | |
| 71 | - cat <<EOF | gzip -c > ${CHANGELOG} | |
| 72 | -${PACKAGE_DEBNAME} ${PACKAGE_DEB_VERSION}; urgency=low | |
| 73 | - | |
| 74 | -This release has no changes over the core source distribution. It has | |
| 75 | -simply been Debianized. | |
| 76 | - | |
| 77 | -Packaged by fossil-dev <[email protected]> on | |
| 78 | -${PACKAGE_TIME}. | |
| 79 | - | |
| 80 | -EOF | |
| 81 | - | |
| 82 | -} | |
| 83 | - | |
| 84 | - | |
| 85 | -true && { | |
| 86 | - CONTROL=DEBIAN/control | |
| 87 | - echo "Generating ${CONTROL}..." | |
| 88 | - cat <<EOF > ${CONTROL} | |
| 89 | -Package: ${PACKAGE_DEBNAME} | |
| 90 | -Section: vcs | |
| 91 | -Priority: optional | |
| 92 | -Maintainer: fossil-dev <[email protected]> | |
| 93 | -Architecture: ${DEB_ARCH_NAME} | |
| 94 | -Depends: libc6 ${DEB_ARCH_PKGDEPENDS+, }${DEB_ARCH_PKGDEPENDS} | |
| 95 | -Version: ${PACKAGE_DEB_VERSION} | |
| 96 | -Description: Fossil is a unique SCM (Software Configuration Management) system. | |
| 97 | - This package contains the Fossil binary for *buntu/Debian systems. | |
| 98 | - Fossil is a unique SCM program which supports distributed source control | |
| 99 | - management using local repositories, access over HTTP CGI, or using the | |
| 100 | - built-in HTTP server. It has a built-in wiki, file browsing, etc. | |
| 101 | - Fossil home page: http://fossil-scm.org | |
| 102 | - Fossil author: D. Richard Hipp | |
| 103 | - License: 2-clause BSD | |
| 104 | -EOF | |
| 105 | - | |
| 106 | -} | |
| 107 | - | |
| 108 | - | |
| 109 | -true && { | |
| 110 | -# GZ_CONTROL=control.tar.gz | |
| 111 | -# GZ_DATA=data.tar.gz | |
| 112 | -# echo "Generating ${GZ_CONTROL} and ${GZ_DATA}..." | |
| 113 | -# rm -f ${GZ_CONTROL} ${GZ_DATA} ${DEBFILE} 2>/dev/null | |
| 114 | -# tar cz -C DEBIAN -f ${GZ_CONTROL} . | |
| 115 | -# tar czf ${GZ_DATA} --exclude='*/doxygen-*' usr | |
| 116 | -# echo '2.0' > debian-binary | |
| 117 | - #ar rcu ${DEBFILE} debian-binary ${GZ_CONTROL} ${GZ_DATA} | |
| 118 | - dpkg-deb -b ${DEBROOT} ${DEBFILE} | |
| 119 | - echo "Package file created:" | |
| 120 | - ls -la ${DEBFILE} | |
| 121 | - dpkg-deb --info ${DEBFILE} | |
| 122 | -} | |
| 123 | - | |
| 124 | -cd - >/dev/null | |
| 125 | -true && { | |
| 126 | - echo "Cleaning up..." | |
| 127 | - rm -fr ${DEBROOT} | |
| 128 | -} | |
| 129 | - | |
| 130 | -echo "Done :)" |
| --- a/debian/makedeb.sh | |
| +++ b/debian/makedeb.sh | |
| @@ -1,130 +0,0 @@ | |
| 1 | #!/bin/bash |
| 2 | # A quick hack to generate a Debian package of fossil. i took most of this |
| 3 | # from Martin Krafft's "The Debian System" book. |
| 4 | |
| 5 | DEB_REV=${1-1} # .deb package build/revision number. |
| 6 | PACKAGE_DEBNAME=fossil |
| 7 | THISDIR=${PWD} |
| 8 | |
| 9 | if uname -a | grep -i nexenta &>/dev/null; then |
| 10 | # Assume NexentaOS/GnuSolaris: |
| 11 | DEB_ARCH_NAME=solaris-i386 |
| 12 | DEB_ARCH_PKGDEPENDS="sunwcsl" # for -lsocket |
| 13 | else |
| 14 | DEB_ARCH_NAME=$(dpkg --print-architecture) |
| 15 | fi |
| 16 | |
| 17 | SRCDIR=$(cd ..; pwd) |
| 18 | test -e ${SRCDIR}/fossil || { |
| 19 | echo "This script must be run from a BUILT copy of the source tree." |
| 20 | exit 1 |
| 21 | } |
| 22 | |
| 23 | DEBROOT=$PWD/deb.tmp |
| 24 | test -d ${DEBROOT} && rm -fr ${DEBROOT} |
| 25 | |
| 26 | DEBLOCALPREFIX=${DEBROOT}/usr |
| 27 | BINDIR=${DEBLOCALPREFIX}/bin |
| 28 | mkdir -p ${BINDIR} |
| 29 | mkdir -p ${DEBLOCALPREFIX}/share/doc/${PACKAGE_DEBNAME} |
| 30 | cp ../fossil ${BINDIR} |
| 31 | strip ${BINDIR}/fossil |
| 32 | |
| 33 | cd $DEBROOT || { |
| 34 | echo "Debian dest dir [$DEBROOT] not found. :(" |
| 35 | exit 2 |
| 36 | } |
| 37 | |
| 38 | |
| 39 | rm -fr DEBIAN |
| 40 | mkdir DEBIAN |
| 41 | |
| 42 | PACKAGE_VERSION=$(date +%Y.%m.%d) |
| 43 | PACKAGE_DEB_VERSION=${PACKAGE_VERSION}-${DEB_REV} |
| 44 | DEBFILE=${THISDIR}/${PACKAGE_DEBNAME}-${PACKAGE_DEB_VERSION}-dev-${DEB_ARCH_NAME}.deb |
| 45 | PACKAGE_TIME=$(/bin/date) |
| 46 | |
| 47 | rm -f ${DEBFILE} |
| 48 | echo "Creating .deb package [${DEBFILE}]..." |
| 49 | |
| 50 | echo "Generating md5 sums..." |
| 51 | find ${DEBLOCALPREFIX} -type f -exec md5sum {} \; > DEBIAN/md5sums |
| 52 | |
| 53 | true && { |
| 54 | echo "Generating Debian-specific files..." |
| 55 | COPYRIGHT=${DEBLOCALPREFIX}/share/doc/${PACKAGE_DEBNAME}/copyright |
| 56 | cat <<EOF > ${COPYRIGHT} |
| 57 | This package was created by fossil-scm <[email protected]> |
| 58 | on ${PACKAGE_TIME}. |
| 59 | |
| 60 | The original sources for fossil can be downloaded for free from: |
| 61 | |
| 62 | http://fossil-scm.org/ |
| 63 | |
| 64 | fossil is released under the terms of the 2-clause BSD License. |
| 65 | |
| 66 | EOF |
| 67 | } |
| 68 | |
| 69 | true && { |
| 70 | CHANGELOG=${DEBLOCALPREFIX}/share/doc/${PACKAGE_DEBNAME}/changelog.gz |
| 71 | cat <<EOF | gzip -c > ${CHANGELOG} |
| 72 | ${PACKAGE_DEBNAME} ${PACKAGE_DEB_VERSION}; urgency=low |
| 73 | |
| 74 | This release has no changes over the core source distribution. It has |
| 75 | simply been Debianized. |
| 76 | |
| 77 | Packaged by fossil-dev <[email protected]> on |
| 78 | ${PACKAGE_TIME}. |
| 79 | |
| 80 | EOF |
| 81 | |
| 82 | } |
| 83 | |
| 84 | |
| 85 | true && { |
| 86 | CONTROL=DEBIAN/control |
| 87 | echo "Generating ${CONTROL}..." |
| 88 | cat <<EOF > ${CONTROL} |
| 89 | Package: ${PACKAGE_DEBNAME} |
| 90 | Section: vcs |
| 91 | Priority: optional |
| 92 | Maintainer: fossil-dev <[email protected]> |
| 93 | Architecture: ${DEB_ARCH_NAME} |
| 94 | Depends: libc6 ${DEB_ARCH_PKGDEPENDS+, }${DEB_ARCH_PKGDEPENDS} |
| 95 | Version: ${PACKAGE_DEB_VERSION} |
| 96 | Description: Fossil is a unique SCM (Software Configuration Management) system. |
| 97 | This package contains the Fossil binary for *buntu/Debian systems. |
| 98 | Fossil is a unique SCM program which supports distributed source control |
| 99 | management using local repositories, access over HTTP CGI, or using the |
| 100 | built-in HTTP server. It has a built-in wiki, file browsing, etc. |
| 101 | Fossil home page: http://fossil-scm.org |
| 102 | Fossil author: D. Richard Hipp |
| 103 | License: 2-clause BSD |
| 104 | EOF |
| 105 | |
| 106 | } |
| 107 | |
| 108 | |
| 109 | true && { |
| 110 | # GZ_CONTROL=control.tar.gz |
| 111 | # GZ_DATA=data.tar.gz |
| 112 | # echo "Generating ${GZ_CONTROL} and ${GZ_DATA}..." |
| 113 | # rm -f ${GZ_CONTROL} ${GZ_DATA} ${DEBFILE} 2>/dev/null |
| 114 | # tar cz -C DEBIAN -f ${GZ_CONTROL} . |
| 115 | # tar czf ${GZ_DATA} --exclude='*/doxygen-*' usr |
| 116 | # echo '2.0' > debian-binary |
| 117 | #ar rcu ${DEBFILE} debian-binary ${GZ_CONTROL} ${GZ_DATA} |
| 118 | dpkg-deb -b ${DEBROOT} ${DEBFILE} |
| 119 | echo "Package file created:" |
| 120 | ls -la ${DEBFILE} |
| 121 | dpkg-deb --info ${DEBFILE} |
| 122 | } |
| 123 | |
| 124 | cd - >/dev/null |
| 125 | true && { |
| 126 | echo "Cleaning up..." |
| 127 | rm -fr ${DEBROOT} |
| 128 | } |
| 129 | |
| 130 | echo "Done :)" |
| --- a/debian/makedeb.sh | |
| +++ b/debian/makedeb.sh | |
| @@ -1,130 +0,0 @@ | |