From d69844dc41470aec25a3da8f57af366007e79601 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 12 May 2015 01:18:29 +0200 Subject: added initial debian packaging diff --git a/DEPS b/DEPS deleted file mode 100644 index 0178e96..0000000 --- a/DEPS +++ /dev/null @@ -1,4 +0,0 @@ -lua-mq -lua-posix -lua-socket -lua-sql-mysql \ No newline at end of file diff --git a/LICENSE b/LICENSE index 0882721..9c5d898 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ /* * rhnop * - * Copyright (C) 2011-2014 Christian Pointner + * Copyright (C) 2011-2015 Christian Pointner * * This file is part of rhnop. * diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..cb0078e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rhnop (0.11) unstable; urgency=medium + + * Initial release. + + -- Christian Pointner Tue, 12 May 2015 01:05:41 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..41f2318 --- /dev/null +++ b/debian/control @@ -0,0 +1,30 @@ +Source: rhnop +Maintainer: Christian Pointner +Section: interpreters +Priority: optional +Standards-Version: 3.9.5 +Build-Depends: debhelper (>= 9), liblua5.2-dev, lua5.2 + +Package: rhnop-common +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Radio Helsinki now playing information system - common + The Radio Helsinki now playing information system gathers the + now playing info into an mysql database for further processing. + This package contains common files + +Package: rhnop-client +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, rhnop-common, adduser, lua-posix, lua-socket, lua-sql-mysql, lua5.2 +Description: Radio Helsinki now playing information system - client + The Radio Helsinki now playing information system gathers the + now playing info into an mysql database for further processing. + This package contains the client component. + +Package: rhnop-server +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, rhnop-common, adduser, lua-posix, lua-socket, lua-sql-mysql, lua-mq, lua5.2 +Description: Radio Helsinki now playing information system - server + The Radio Helsinki now playing information system gathers the + now playing info into an mysql database for further processing. + This package contains the server component (rivendell side). \ No newline at end of file diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c86ffd4 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,36 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: rhnop +Upstream-Contact: Christian Pointner +Source: http://git.helsinki.at/?p=rhnop.git;a=summary + +Files: * +Copyright: Copyright 2011-2015 Christian Pointner +License: GPL-3+ + rhnop is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + any later version. + . + rhnop is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with rhnop. If not, see . + +Files: debian/* +Copyright: Copyright 2015 Christian Pointner +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . diff --git a/debian/rhnop-client.install b/debian/rhnop-client.install new file mode 100644 index 0000000..6b9cf7e --- /dev/null +++ b/debian/rhnop-client.install @@ -0,0 +1,5 @@ +usr/bin/nopcollectd +usr/bin/nopsysstated +etc/rhnop/nopcollectd.*.conf +etc/rhnop/nopsysstated.conf +usr/share/rhnop/db.lua diff --git a/debian/rhnop-common.install b/debian/rhnop-common.install new file mode 100644 index 0000000..3430f1f --- /dev/null +++ b/debian/rhnop-common.install @@ -0,0 +1 @@ +usr/share/rhnop/conf.lua diff --git a/debian/rhnop-common.postinst b/debian/rhnop-common.postinst new file mode 100755 index 0000000..46f206a --- /dev/null +++ b/debian/rhnop-common.postinst @@ -0,0 +1,9 @@ +#!/bin/sh +# postinst script for rhnop + +set -e + +if [ "$1" = "configure" ]; then + adduser --quiet --system --group --no-create-home --home /var/run/rhnop rhnop + chgrp -R rhnop /etc/rhnop/ +fi diff --git a/debian/rhnop-common.postrm b/debian/rhnop-common.postrm new file mode 100755 index 0000000..14f36ba --- /dev/null +++ b/debian/rhnop-common.postrm @@ -0,0 +1,13 @@ +#!/bin/sh +# postrm script for rhnop + +set -e + +if [ "$1" = "purge" ] ; then + if [ -x "$(command -v deluser)" -a -x "$(command -v delgroup)" ]; then + deluser --quiet --system rhnop || true + delgroup --quiet --system rhnop || true + else + echo "Not removing rhnop user and group: adduser package not found." >&2 + fi +fi diff --git a/debian/rhnop-server.install b/debian/rhnop-server.install new file mode 100644 index 0000000..30ef2ea --- /dev/null +++ b/debian/rhnop-server.install @@ -0,0 +1,7 @@ +usr/bin/noprml +usr/bin/nopsyncd +etc/rhnop/nopsyncd.conf +usr/share/rhnop/rddb.lua +usr/share/rhnop/playlog.lua +usr/share/rhnop/qlistener.lua +usr/share/rhnop/tcpserver.lua \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..83b194e --- /dev/null +++ b/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f +%: + dh $@ --sourcedirectory=src + +override_dh_auto_configure: + dh_auto_configure -- --ebuild-compat diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- cgit v0.10.2