Fossil SCM
User-contributed patch to the debian/makedeb.sh script for generating a debian package for Fossil.
Commit
7b1fd597b4803f10b753f1b6ead1225085b065c3
Parent
f9a200f01b39854…
1 file changed
+5
-7
+5
-7
| --- debian/makedeb.sh | ||
| +++ debian/makedeb.sh | ||
| @@ -1,21 +1,19 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | 2 | # A quick hack to generate a Debian package of fossil. i took most of this |
| 3 | 3 | # from Martin Krafft's "The Debian System" book. |
| 4 | 4 | |
| 5 | 5 | DEB_REV=${1-1} # .deb package build/revision number. |
| 6 | -PACKAGE_DEBNAME=fossil-scm | |
| 6 | +PACKAGE_DEBNAME=fossil | |
| 7 | 7 | THISDIR=${PWD} |
| 8 | 8 | |
| 9 | 9 | if uname -a | grep -i nexenta &>/dev/null; then |
| 10 | 10 | # Assume NexentaOS/GnuSolaris: |
| 11 | - DEB_PLATFORM=nexenta | |
| 12 | 11 | DEB_ARCH_NAME=solaris-i386 |
| 13 | 12 | DEB_ARCH_PKGDEPENDS="sunwcsl" # for -lsocket |
| 14 | 13 | else |
| 15 | - DEB_PLATFORM=${DEB_PLATFORM-ubuntu-gutsy} | |
| 16 | - DEB_ARCH_NAME=i386 | |
| 14 | + DEB_ARCH_NAME=$(dpkg --print-architecture) | |
| 17 | 15 | fi |
| 18 | 16 | |
| 19 | 17 | SRCDIR=$(cd ..; pwd) |
| 20 | 18 | test -e ${SRCDIR}/fossil || { |
| 21 | 19 | echo "This script must be run from a BUILT copy of the source tree." |
| @@ -41,11 +39,11 @@ | ||
| 41 | 39 | rm -fr DEBIAN |
| 42 | 40 | mkdir DEBIAN |
| 43 | 41 | |
| 44 | 42 | PACKAGE_VERSION=$(date +%Y.%m.%d) |
| 45 | 43 | PACKAGE_DEB_VERSION=${PACKAGE_VERSION}-${DEB_REV} |
| 46 | -DEBFILE=${THISDIR}/${PACKAGE_DEBNAME}-${PACKAGE_DEB_VERSION}-dev-${DEB_ARCH_NAME}-${DEB_PLATFORM}.deb | |
| 44 | +DEBFILE=${THISDIR}/${PACKAGE_DEBNAME}-${PACKAGE_DEB_VERSION}-dev-${DEB_ARCH_NAME}.deb | |
| 47 | 45 | PACKAGE_TIME=$(/bin/date) |
| 48 | 46 | |
| 49 | 47 | rm -f ${DEBFILE} |
| 50 | 48 | echo "Creating .deb package [${DEBFILE}]..." |
| 51 | 49 | |
| @@ -87,15 +85,15 @@ | ||
| 87 | 85 | true && { |
| 88 | 86 | CONTROL=DEBIAN/control |
| 89 | 87 | echo "Generating ${CONTROL}..." |
| 90 | 88 | cat <<EOF > ${CONTROL} |
| 91 | 89 | Package: ${PACKAGE_DEBNAME} |
| 92 | -Section: devel | |
| 90 | +Section: vcs | |
| 93 | 91 | Priority: optional |
| 94 | 92 | Maintainer: stephan beal <[email protected]> |
| 95 | 93 | Architecture: ${DEB_ARCH_NAME} |
| 96 | -Depends: libc6-dev ${DEB_ARCH_PKGDEPENDS+, }${DEB_ARCH_PKGDEPENDS} | |
| 94 | +Depends: libc6 ${DEB_ARCH_PKGDEPENDS+, }${DEB_ARCH_PKGDEPENDS} | |
| 97 | 95 | Version: ${PACKAGE_DEB_VERSION} |
| 98 | 96 | Description: Fossil is a unique SCM (Software Configuration Management) system. |
| 99 | 97 | This package contains the Fossil binary for *buntu/Debian systems. |
| 100 | 98 | Fossil is a unique SCM program which supports distributed source control |
| 101 | 99 | management using local repositories, access over HTTP CGI, or using the |
| 102 | 100 |
| --- debian/makedeb.sh | |
| +++ debian/makedeb.sh | |
| @@ -1,21 +1,19 @@ | |
| 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-scm |
| 7 | THISDIR=${PWD} |
| 8 | |
| 9 | if uname -a | grep -i nexenta &>/dev/null; then |
| 10 | # Assume NexentaOS/GnuSolaris: |
| 11 | DEB_PLATFORM=nexenta |
| 12 | DEB_ARCH_NAME=solaris-i386 |
| 13 | DEB_ARCH_PKGDEPENDS="sunwcsl" # for -lsocket |
| 14 | else |
| 15 | DEB_PLATFORM=${DEB_PLATFORM-ubuntu-gutsy} |
| 16 | DEB_ARCH_NAME=i386 |
| 17 | fi |
| 18 | |
| 19 | SRCDIR=$(cd ..; pwd) |
| 20 | test -e ${SRCDIR}/fossil || { |
| 21 | echo "This script must be run from a BUILT copy of the source tree." |
| @@ -41,11 +39,11 @@ | |
| 41 | rm -fr DEBIAN |
| 42 | mkdir DEBIAN |
| 43 | |
| 44 | PACKAGE_VERSION=$(date +%Y.%m.%d) |
| 45 | PACKAGE_DEB_VERSION=${PACKAGE_VERSION}-${DEB_REV} |
| 46 | DEBFILE=${THISDIR}/${PACKAGE_DEBNAME}-${PACKAGE_DEB_VERSION}-dev-${DEB_ARCH_NAME}-${DEB_PLATFORM}.deb |
| 47 | PACKAGE_TIME=$(/bin/date) |
| 48 | |
| 49 | rm -f ${DEBFILE} |
| 50 | echo "Creating .deb package [${DEBFILE}]..." |
| 51 | |
| @@ -87,15 +85,15 @@ | |
| 87 | true && { |
| 88 | CONTROL=DEBIAN/control |
| 89 | echo "Generating ${CONTROL}..." |
| 90 | cat <<EOF > ${CONTROL} |
| 91 | Package: ${PACKAGE_DEBNAME} |
| 92 | Section: devel |
| 93 | Priority: optional |
| 94 | Maintainer: stephan beal <[email protected]> |
| 95 | Architecture: ${DEB_ARCH_NAME} |
| 96 | Depends: libc6-dev ${DEB_ARCH_PKGDEPENDS+, }${DEB_ARCH_PKGDEPENDS} |
| 97 | Version: ${PACKAGE_DEB_VERSION} |
| 98 | Description: Fossil is a unique SCM (Software Configuration Management) system. |
| 99 | This package contains the Fossil binary for *buntu/Debian systems. |
| 100 | Fossil is a unique SCM program which supports distributed source control |
| 101 | management using local repositories, access over HTTP CGI, or using the |
| 102 |
| --- debian/makedeb.sh | |
| +++ debian/makedeb.sh | |
| @@ -1,21 +1,19 @@ | |
| 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." |
| @@ -41,11 +39,11 @@ | |
| 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 | |
| @@ -87,15 +85,15 @@ | |
| 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: stephan beal <[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 |