File: deb

package info (click to toggle)
syslog-ng 4.8.1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 20,440 kB
  • sloc: ansic: 177,631; python: 13,035; cpp: 11,611; makefile: 7,011; sh: 5,147; java: 3,651; xml: 3,344; yacc: 1,377; lex: 599; perl: 193; awk: 190; objc: 162
file content (40 lines) | stat: -rwxr-xr-x 961 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash

. /dbld/functions.sh

function setup_dirs() {
    rm -rf /build/${IMAGE_PLATFORM} && mkdir -p /build/${IMAGE_PLATFORM}
}

function prepare_source() {
    cd /build
    rm -rf syslog-ng-${VERSION}
    tar xf syslog-ng-${VERSION}.tar.gz

    # save the tarball as .orig.tar.gz so that dpkg-buildpackage finds it as the original source
    cp syslog-ng-${VERSION}.tar.gz syslog-ng_${VERSION}.orig.tar.gz
}

function capture_debs() {
    mv /build/*.deb /build/${IMAGE_PLATFORM}
    echo "Your debs are in /build/${IMAGE_PLATFORM}, also available on the host in \$(top_srcdir)/dbld/build/${IMAGE_PLATFORM}"

    capture_artifacts /build/${IMAGE_PLATFORM}/*.deb
}

cd /build

validate_container
setup_dirs
prepare_source

cd syslog-ng-${VERSION}

if [ ! -d debian ]; then
	echo "You have no Debian packaging in debian/, this should already by in the tarball at this point"
	exit 1
fi

deb_run_build_command dpkg-buildpackage -rfakeroot -d

capture_debs