[mw-devel] MW3 r1041 - in trunk: . debian-template

welshbyte at sucs.org welshbyte at sucs.org
Mon Jun 16 20:57:31 BST 2008


Author: welshbyte
Date: 2008-06-16 20:57:30 +0100 (Mon, 16 Jun 2008)
New Revision: 1041

Added:
   trunk/debian-template/
   trunk/debian-template/changelog
   trunk/debian-template/compat
   trunk/debian-template/control
   trunk/debian-template/copyright
   trunk/debian-template/dirs
   trunk/debian-template/docs
   trunk/debian-template/postinst
   trunk/debian-template/rules
Log:
Add template debian files to build mw3 deb packages from.


Added: trunk/debian-template/changelog
===================================================================

Added: trunk/debian-template/compat
===================================================================
--- trunk/debian-template/compat	                        (rev 0)
+++ trunk/debian-template/compat	2008-06-16 19:57:30 UTC (rev 1041)
@@ -0,0 +1 @@
+5

Added: trunk/debian-template/control
===================================================================
--- trunk/debian-template/control	                        (rev 0)
+++ trunk/debian-template/control	2008-06-16 19:57:30 UTC (rev 1041)
@@ -0,0 +1,13 @@
+Source: mw3
+Section: misc
+Priority: extra
+Maintainer: Milliways Developers <mw-devel at lists.sucs.org>
+Build-Depends: cdbs, debhelper (>= 5), libreadline5-dev, libcurl4-dev | libcurl-dev, libmozjs-dev, libsqlite3-dev, subversion
+Standards-Version: 3.7.2
+
+Package: mw3
+Architecture: any
+Depends: ${shlibs:Depends}, adduser
+Description: Milliways III talker and BBS
+ An integrated talker and BBS (bulletin board system) with a peer-to-peer
+ architecture, intended to be used over telnet, ssh or similar.

Added: trunk/debian-template/copyright
===================================================================
--- trunk/debian-template/copyright	                        (rev 0)
+++ trunk/debian-template/copyright	2008-06-16 19:57:30 UTC (rev 1041)
@@ -0,0 +1,24 @@
+This package was debianized by Andy Price <welshbyte at sucs.org> on
+Fri, 30 Nov 2007 17:38:17 +0000.
+
+It was downloaded from http://projects.sucs.org/projects/mw
+
+Upstream Authors: 
+
+    Justin Mitchell <arthur at sucs.org>
+    Swansea University Computer Society <mw-devel at lists.sucs.org>
+
+Copyright: 
+
+    Copyright (C) 1992 - 2007 Justin Mitchell
+
+License:
+
+    You are free to distribute this software under the terms of the 
+    GNU General Public License  either version 2 of the License, or
+    (at your option) any later version. On Debian systems, the 
+    complete text of the GNU General Public License can be found in 
+    the file `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is (C) 2007, Andy Price <welshbyte at sucs.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.

Added: trunk/debian-template/dirs
===================================================================
--- trunk/debian-template/dirs	                        (rev 0)
+++ trunk/debian-template/dirs	2008-06-16 19:57:30 UTC (rev 1041)
@@ -0,0 +1,5 @@
+usr/bin
+usr/lib/mw
+var/log/mw
+var/lib/mw
+var/run/mw

Added: trunk/debian-template/docs
===================================================================
--- trunk/debian-template/docs	                        (rev 0)
+++ trunk/debian-template/docs	2008-06-16 19:57:30 UTC (rev 1041)
@@ -0,0 +1 @@
+README

Added: trunk/debian-template/postinst
===================================================================
--- trunk/debian-template/postinst	                        (rev 0)
+++ trunk/debian-template/postinst	2008-06-16 19:57:30 UTC (rev 1041)
@@ -0,0 +1,36 @@
+#!/bin/sh -e
+
+case "$1" in
+    configure)
+        ;;
+    abort-upgrade|abort-remove|abort-deconfigure)
+        ;;
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+        ;;
+esac
+
+if ! getent group mw >/dev/null 2>&1; then
+    addgroup --system mw
+fi
+
+if ! getent passwd mw >/dev/null 2>&1; then
+    adduser --system --disabled-password --disabled-login --no-create-home \
+        --ingroup mw mw
+fi
+
+chown -R mw:mw /usr/lib/mw
+chown mw:mw /usr/bin/mw
+chown mw:mw /var/log/mw
+chown mw:mw /var/lib/mw
+chown mw:mw /var/run/mw
+chmod 6711 /usr/bin/mw
+chmod 751 /usr/lib/mw/rooms
+chmod 640 /usr/lib/mw/login.banner
+chmod 644 /usr/lib/mw/colour/*
+chmod 755 /var/log/mw
+chmod 711 /var/lib/mw
+chmod 755 /var/run/mw
+
+#DEBHELPER#

Added: trunk/debian-template/rules
===================================================================
--- trunk/debian-template/rules	                        (rev 0)
+++ trunk/debian-template/rules	2008-06-16 19:57:30 UTC (rev 1041)
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+DEB_SRCDIR = $(CURDIR)/src
+HOMEPATH = $(DEB_DESTDIR)
+CPPFLAGS+=-I/usr/include/mozjs
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk
+DEB_MAKE_BUILD_TARGET := libdir=/usr/lib bindir=/usr/bin
+DEB_MAKE_INSTALL_TARGET := -C $(CURDIR) install libdir=$(DEB_DESTDIR)/usr/lib bindir=$(DEB_DESTDIR)/usr/bin localstatedir=$(DEB_DESTDIR)/var
+
+install/mw3::
+	@rm $(DEB_DESTDIR)/usr/lib/mw/COPYING
+	@rm $(DEB_DESTDIR)/usr/lib/mw/LICENSE
+	@rm $(DEB_DESTDIR)/usr/lib/mw/README
+	@rm $(DEB_DESTDIR)/usr/lib/mw/INSTALL


Property changes on: trunk/debian-template/rules
___________________________________________________________________
Name: svn:executable
   + *





More information about the mw-devel mailing list