Fossil SCM

User-contributed patch to the debian/makedeb.sh script for generating a debian package for Fossil.

drh 2012-02-04 14:48 trunk
Commit 7b1fd597b4803f10b753f1b6ead1225085b065c3
1 file changed +5 -7
--- debian/makedeb.sh
+++ debian/makedeb.sh
@@ -1,21 +1,19 @@
11
#!/bin/bash
22
# A quick hack to generate a Debian package of fossil. i took most of this
33
# from Martin Krafft's "The Debian System" book.
44
55
DEB_REV=${1-1} # .deb package build/revision number.
6
-PACKAGE_DEBNAME=fossil-scm
6
+PACKAGE_DEBNAME=fossil
77
THISDIR=${PWD}
88
99
if uname -a | grep -i nexenta &>/dev/null; then
1010
# Assume NexentaOS/GnuSolaris:
11
- DEB_PLATFORM=nexenta
1211
DEB_ARCH_NAME=solaris-i386
1312
DEB_ARCH_PKGDEPENDS="sunwcsl" # for -lsocket
1413
else
15
- DEB_PLATFORM=${DEB_PLATFORM-ubuntu-gutsy}
16
- DEB_ARCH_NAME=i386
14
+ DEB_ARCH_NAME=$(dpkg --print-architecture)
1715
fi
1816
1917
SRCDIR=$(cd ..; pwd)
2018
test -e ${SRCDIR}/fossil || {
2119
echo "This script must be run from a BUILT copy of the source tree."
@@ -41,11 +39,11 @@
4139
rm -fr DEBIAN
4240
mkdir DEBIAN
4341
4442
PACKAGE_VERSION=$(date +%Y.%m.%d)
4543
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
4745
PACKAGE_TIME=$(/bin/date)
4846
4947
rm -f ${DEBFILE}
5048
echo "Creating .deb package [${DEBFILE}]..."
5149
@@ -87,15 +85,15 @@
8785
true && {
8886
CONTROL=DEBIAN/control
8987
echo "Generating ${CONTROL}..."
9088
cat <<EOF > ${CONTROL}
9189
Package: ${PACKAGE_DEBNAME}
92
-Section: devel
90
+Section: vcs
9391
Priority: optional
9492
Maintainer: stephan beal <[email protected]>
9593
Architecture: ${DEB_ARCH_NAME}
96
-Depends: libc6-dev ${DEB_ARCH_PKGDEPENDS+, }${DEB_ARCH_PKGDEPENDS}
94
+Depends: libc6 ${DEB_ARCH_PKGDEPENDS+, }${DEB_ARCH_PKGDEPENDS}
9795
Version: ${PACKAGE_DEB_VERSION}
9896
Description: Fossil is a unique SCM (Software Configuration Management) system.
9997
This package contains the Fossil binary for *buntu/Debian systems.
10098
Fossil is a unique SCM program which supports distributed source control
10199
management using local repositories, access over HTTP CGI, or using the
102100
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button