Initial DEB build

This commit is contained in:
deon 2018-10-19 11:21:26 +00:00
parent ee194c102f
commit 94d6c2b545
12 changed files with 115 additions and 4 deletions

View File

@ -1,8 +1,29 @@
image: gcc
image: ci-apt:latest
stages:
- build
variables:
- VERSION: 0.12
before_script:
- apt-get update -qq && apt-get install -y -qq build-essential libsqlite3-dev libreadline-dev git libssh-dev libssl1.0-dev libncurses5-dev libmicrohttpd-dev libdbd-sqlite3-perl sed
- apt-get update
- apt-get install -y zip unzip dos2unix libbz2-dev zlib1g-dev libgeoip-dev libncurses5-dev libhunspell-dev libsqlite3-dev libreadline-dev libssl1.0-dev libssh-dev libmicrohttpd-dev libdbd-sqlite3-perl libmosquitto-dev m4 sed
magicka:
build:
stage: build
script:
- make www
- set
- env
- pwd
- git archive --output=tar |gzip -9 > ../magicka_${VERSION}.orig.tar.gz
- dpkg-buildpackage -us -uc
tags:
- apt
only:
- debian
# The files which are to be made available in GitLab
artifacts:
paths:
- build/deb/*

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
magicka (0.12-1) UNRELEASED; urgency=low
* Initial release.
-- Deon George <deon@leenooks.net> Thu, 18 Oct 2018 22:30:20 +1100

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
10

17
debian/control vendored Normal file
View File

@ -0,0 +1,17 @@
Source: magicka
Maintainer: Deon George <deon@leenooks.net>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.8
Section: bbs
Package: magicka
Priority: optional
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: This is the Magicka BBS
Magicka BBS is a bulletin board system (BBS) for UN*X like systems. It is known
to run on Linux, FreeBSD, NetBSD, OpenBSD, Dragonfly BSD, Openindiana(Illumos)
and macOS.
Magicka is meant to be a modern BBS system, using modern technologies, like
Sqlite3, long filenames etc while still retaining the classic BBS feel. ANSI
& Telnet, and good old ZModem.

0
debian/copyright vendored Normal file
View File

1
debian/debhelper-build-stamp vendored Normal file
View File

@ -0,0 +1 @@
magicka

3
debian/files vendored Normal file
View File

@ -0,0 +1,3 @@
magicka-dbgsym_0.12-1_amd64.deb debug extra
magicka_0.12-1_amd64.buildinfo bbs -
magicka_0.12-1_amd64.deb bbs optional

3
debian/magicka.substvars vendored Normal file
View File

@ -0,0 +1,3 @@
shlibs:Depends=libc6 (>= 2.14), libmicrohttpd12 (>= 0.9.50), libmosquitto1 (>= 1.0), libsqlite3-0 (>= 3.5.9), libssh-4 (>= 0.6.1), libssl1.0.2 (>= 1.0.2d)
misc:Depends=
misc:Pre-Depends=

8
debian/patches/makefile.patch vendored Normal file
View File

@ -0,0 +1,8 @@
--- a/deps/libb64-1.2/Makefile
+++ b/deps/libb64-1.2/Makefile
@@ -1,3 +1,5 @@
+CFLAGS:=
+
all: all_src all_base64
all_src:

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
makefile.patch

50
debian/rules vendored Executable file
View File

@ -0,0 +1,50 @@
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_clean:
make clean || true
rm -f deps/Xmodem/libzmodem.a
rm -f deps/cdk-5.0-20161210/Makefile
rm -f deps/cdk-5.0-20161210/cdk-config
rm -f deps/cdk-5.0-20161210/cli/Makefile
rm -f deps/cdk-5.0-20161210/config.log
rm -f deps/cdk-5.0-20161210/config.status
rm -f deps/cdk-5.0-20161210/demos/Makefile
rm -f deps/cdk-5.0-20161210/examples/Makefile
rm -f deps/cdk-5.0-20161210/include/cdk_config.h
rm -f deps/cdk-5.0-20161210/include/cdk_version.h
rm -f deps/jsmn/jsmn.o
rm -f deps/jsmn/libjsmn.a
rm -f deps/libb64-1.2/base64/depend
rm -f deps/libb64-1.2/src/depend
rm -f deps/libuuid/Makefile
rm -f deps/libuuid/Makefile.in
rm -f deps/libuuid/aclocal.m4
rm -f deps/libuuid/config.h
rm -f deps/libuuid/config.log
rm -f deps/libuuid/config.status
rm -f deps/libuuid/configure
rm -f deps/libuuid/libtool
rm -f deps/libuuid/ltmain.sh
rm -f deps/libuuid/stamp-h1
rm -f deps/libuuid/uuid.pc
git checkout deps/libuuid/config.h.in
override_dh_auto_configure:
echo "NOOP"
override_dh_autoreconf:
echo "NOOP"
override_dh_auto_build:
echo "NOOP"
override_dh_auto_install:
make -j1 www
mkdir -p $$(pwd)/debian/magicka/usr/bin
mkdir -p $$(pwd)/debian/magicka/usr/share/doc/magicka
mkdir -p $$(pwd)/debian/magicka/opt/magicka
cp -p magicka $$(pwd)/debian/magicka/usr/bin/
cp -pR docs/* $$(pwd)/debian/magicka/usr/share/doc/magicka/
cp -pR setup.sh $$(pwd)/debian/magicka/opt/magicka/

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)