commit 045ca76a51221b43d54bf6a9d93f4353da9d9a49 Author: Deon George Date: Mon Jan 28 10:32:43 2019 +0000 Initial Release diff --git a/galacticdynasty/debian/changelog b/galacticdynasty/debian/changelog new file mode 100644 index 0000000..422f0db --- /dev/null +++ b/galacticdynasty/debian/changelog @@ -0,0 +1,5 @@ +galacticdynasty (0.9.3-1) UNRELEASED; urgency=low + + * Initial release. + + -- Deon George Mon, 28 Jan 2019 00:00:00 +1100 diff --git a/galacticdynasty/debian/compat b/galacticdynasty/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/galacticdynasty/debian/compat @@ -0,0 +1 @@ +10 diff --git a/galacticdynasty/debian/control b/galacticdynasty/debian/control new file mode 100644 index 0000000..2824b2f --- /dev/null +++ b/galacticdynasty/debian/control @@ -0,0 +1,12 @@ +Source: galacticdynasty +Maintainer: Deon George +Build-Depends: debhelper (>= 8.0.0), libsqlite3-dev, liblua5.3-dev +Standards-Version: 3.9.8 +Section: games + +Package: galacticdynasty +Priority: optional +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Galactic Dynasty is a BBS door game similar to Solar Realms Elite. + It is interBBS capable and opensource. diff --git a/galacticdynasty/debian/copyright b/galacticdynasty/debian/copyright new file mode 100644 index 0000000..99fb87d --- /dev/null +++ b/galacticdynasty/debian/copyright @@ -0,0 +1 @@ +Andrew Pamment diff --git a/galacticdynasty/debian/patches/add-start.patch b/galacticdynasty/debian/patches/add-start.patch new file mode 100644 index 0000000..c76d96f --- /dev/null +++ b/galacticdynasty/debian/patches/add-start.patch @@ -0,0 +1,9 @@ +--- /dev/null ++++ b/start.sh +@@ -0,0 +1,6 @@ ++#!/bin/bash ++ ++cd /var/doors/galacticdynasty ++GalacticDynasty -D $1 -N $2 2> error ++ ++GalacticDynasty maintenance diff --git a/galacticdynasty/debian/patches/fix-makefile.patch b/galacticdynasty/debian/patches/fix-makefile.patch new file mode 100644 index 0000000..1525696 --- /dev/null +++ b/galacticdynasty/debian/patches/fix-makefile.patch @@ -0,0 +1,65 @@ +--- a/Makefile ++++ b/Makefile +@@ -1,10 +1,59 @@ + all:GalacticDynasty + + main.o: +- gcc -c main.cpp ++ if [ ! -e odoors ] ; \ ++ then \ ++ git clone git://git.magickabbs.com/odoors ; \ ++ fi ++ ++ cd odoors ; \ ++ make ++ ++ cd .. ++ ++ gcc -c main.c -o main.o -I./odoors/ -I/usr/include/lua5.3 ; \ ++ gcc -c interbbs2.c -o interbbs2.o ; \ ++ gcc -c inih/ini.c -o inih/ini.o ; \ ++ gcc -o GalacticDynasty main.o interbbs2.o inih/ini.o odoors/libs-`uname -s`/libODoors.a -lsqlite3 -llua5.3 + + interbbs2.o: +- gcc -c interbbs2.cpp ++ #gcc -c interbbs2.cpp ++ echo "NOOP" + + GalacticDynasty: main.o interbbs2.o +- g++ -o GalacticDynasty main.o interbbs2.o -lODoors -lsqlite3 ++ #g++ -o GalacticDynasty main.o interbbs2.o -lODoors -lsqlite3 ++ echo "NOOP" ++ ++clean: ++ rm -f *.o inih/*.o ++ rm -rf odoors ++ rm -f GalacticDynasty ++ ++DOOR_FILES=/var/door/galacticdynasty ++DOOR_DOC=$(PREFIX)/share/doc/galacticdynasty ++DOOR_BIN=$(PREFIX)/bin ++BINNAME=GalacticDynasty ++ ++install-dirs: ++ @if [ ! -d "$(DESTDIR)$(DOOR_FILES)" ] ; then \ ++ mkdir -p "$(DESTDIR)$(DOOR_FILES)" ; \ ++ chmod 755 "$(DESTDIR)$(DOOR_FILES)" ; \ ++ fi ++ @if [ ! -d "$(DESTDIR)$(DOOR_BIN)" ] ; then \ ++ mkdir -p "$(DESTDIR)/$(DOOR_BIN)" ; \ ++ chmod 755 "$(DESTDIR)/$(DOOR_BIN)" ; \ ++ fi ++ ++install: ++ @$(MAKE) install-dirs ++ if [ -f "$(BINNAME)" ] ; then \ ++ cp "$(BINNAME)" "$(DESTDIR)/$(DOOR_BIN)" ; \ ++ chmod 755 "$(DESTDIR)$(DOOR_BIN)/$(BINNAME)" ; \ ++ chown root:root "$(DESTDIR)$(DOOR_BIN)/$(BINNAME)" ; \ ++ fi ++ cp *.asc *.ans *.ini events.lua reset.sh start.sh "$(DESTDIR)$(DOOR_FILES)" ++ chmod +x "$(DESTDIR)$(DOOR_FILES)"/start.sh ++ cp EXAMPLE.CFG "$(DESTDIR)$(DOOR_FILES)/BBS.CFG" ++ mkdir -p $(DESTDIR)$(DOOR_DOC) ++ cp linmyst.txt "$(DESTDIR)$(DOOR_DOC)" ++ tar --wildcards -C "$(DESTDIR)$(DOOR_FILES)" --strip-components=1 -xzf ../galacticdynasty_0.9.3.orig.tar.gz \*orig diff --git a/galacticdynasty/debian/patches/series b/galacticdynasty/debian/patches/series new file mode 100644 index 0000000..5566b86 --- /dev/null +++ b/galacticdynasty/debian/patches/series @@ -0,0 +1,2 @@ +fix-makefile.patch +add-start.patch diff --git a/galacticdynasty/debian/rules b/galacticdynasty/debian/rules new file mode 100755 index 0000000..0ffa933 --- /dev/null +++ b/galacticdynasty/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f +CFLAGS += -Wno-error=format-security + +%: + dh $@ + +override_dh_auto_build: + make -j1 + +override_dh_auto_install: + make -j1 PREFIX=/usr install DESTDIR=$$(pwd)/debian/galacticdynasty + +override_dh_usrlocal: + echo "Ignoring..." diff --git a/galacticdynasty/debian/source/format b/galacticdynasty/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/galacticdynasty/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/galacticdynasty_0.9.3.orig.tar.gz b/galacticdynasty_0.9.3.orig.tar.gz new file mode 100644 index 0000000..7b647d9 Binary files /dev/null and b/galacticdynasty_0.9.3.orig.tar.gz differ