Permalink
Browse files

initial commit

committing changes before adding svn export of www tree
  • Loading branch information...
0 parents commit 353dfb17fbcc9fb334095b980167eb79cfffebef @timwhite timwhite committed May 3, 2010
@@ -0,0 +1,2 @@
+[BUILDDEB]
+native = True
@@ -0,0 +1,7 @@
+The Debian Package grase-www-portal
+----------------------------
+
+This package installs the webapps that make up the portal. UAM, Radmin,
+and Usermin.
+
+ -- Tim White <tim@hotspot.purewhite.id.au> Sun, 25 Apr 2010 05:38:26 +0800
@@ -0,0 +1,6 @@
+grase-www-portal (3.0) unstable; urgency=low
+
+ [ Tim White ]
+ * Initial Debian Release.
+
+ -- Tim White <tim@hotspot.purewhite.id.au> Mon, 3 May 2010 10:47:00 +0800
@@ -0,0 +1 @@
+7
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+# config maintainer script for grase-www-portal
+
+# source debconf stuff
+. /usr/share/debconf/confmodule
+# we support mysql and pgsql
+dbc_first_version=3.0
+dbc_dbtypes="mysql"
+dbc_dbname="radmin"
+dbc_dbuser="radmin"
+dbc_dbpassword=""
+# source dbconfig-common stuff
+. /usr/share/dbconfig-common/dpkg/config
+dbc_go grase-www-portal $@
+
+
@@ -0,0 +1,13 @@
+Source: grase-conf-monit
+Section: unknown
+Priority: extra
+Maintainer: Tim White <tim@hotspot.purewhite.id.au>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.8.3
+Homepage: <insert the upstream URL, if relevant>
+
+Package: grase-conf-monit
+Architecture: all
+Depends: ${misc:Depends}
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>
@@ -0,0 +1,19 @@
+Source: grase-www-portal
+Section: config
+Priority: extra
+Maintainer: Tim White <tim@hotspot.purewhite.id.au>
+Build-Depends: @cdbs@, config-package-dev
+Standards-Version: 3.8.4
+Homepage: http://hotspot.purewhite.id.au/
+
+Package: grase-www-portal
+Architecture: all
+Depends: cdbs, ${misc:Depends}
+Provides: ${diverted-files}
+Conflicts: ${diverted-files}
+Description: Portal files for the GRASE Hotspot System
+ The GRASE Hotspot System binds together CoovaChilli, Freeradius, MySQL,
+ and other systems as well as providing an administrative frontend to managing
+ users and other hotspot related tasks.
+ .
+ This package provides the portal webapps
@@ -0,0 +1,50 @@
+This work was packaged for Debian by:
+
+ unknown <tim@unknown> on Sun, 25 Apr 2010 05:38:26 +0800
+
+It was downloaded from:
+
+ <url://example.com>
+
+Upstream Author(s):
+
+ <put author's name and email here>
+ <likewise for another author>
+
+Copyright:
+
+ <Copyright (C) YYYY Firstname Lastname>
+ <likewise for another author>
+
+License:
+
+ 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 package 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 <http://www.gnu.org/licenses/>.
+
+On Debian systems, the complete text of the GNU General
+Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
+
+The Debian packaging is:
+
+ Copyright (C) 2010 unknown <tim@unknown>
+
+# Please chose a license for your packaging work. If the program you package
+# uses a mainstream license, using the same license is the safest choice.
+# Please avoid to pick license terms that are more restrictive than the
+# packaged work, as it may make Debian's contributions unacceptable upstream.
+# If you just want it to be GPL version 3, leave the following line in.
+
+and is licensed under the GPL version 3, see above.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
@@ -0,0 +1,18 @@
+# /etc/cron.d/grase-www-poral: crontab fragment for grase-www-portal
+# This clears stale sessions and at the end of the month, moves user accounting
+# details into the monthly tables clearing the current months table.
+# m h dom mon dow command
+
+PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+MAILTO=cron.hotspot@weirdo.bur.st
+
+#@daily /root/system/install/upgrade_script.sh
+@reboot /var/www/radmin/scripts/radius_stale > /dev/null
+@daily /var/www/radmin/scripts/radius_stale > /dev/null
+3 5 1,2 * * /var/www/radmin/scripts/radius_stale > /dev/null
+17 5 1,2 * * /var/www/radmin/scripts/radius_monthly_acct
+37 3 3 * * /var/www/radmin/scripts/radius_old_users
+@monthly /var/www/radmin/scripts/mirror_common_apps.sh
+#30 2 * * * /var/www/radmin/scripts/avast_mirror
+
+@daily /var/www/radmin/scripts/mysql_backup
@@ -0,0 +1 @@
+files/* /
@@ -0,0 +1,33 @@
+#!/bin/sh -e
+
+action="$1"
+oldversion="$2"
+
+umask 022
+
+# source debconf stuff
+. /usr/share/debconf/confmodule
+# source dbconfig-common stuff
+. /usr/share/dbconfig-common/dpkg/postinst.mysql
+
+dbc_first_version=3.0
+dbc_generate_include="template:/etc/grase/radmin.conf"
+dbc_generate_include_perm="660"
+dbc_generate_include_owner="root:www-data"
+dbc_generate_include_args="-o template_infile=/usr/share/grase/templates/radmin.conf -U"
+
+dbc_go grase-www-portal $@
+
+
+
+if [ "$action" != configure ]
+ then
+ exit 0
+fi
+
+
+#DEBHELPER#
+
+exit 0
+
+
@@ -0,0 +1,25 @@
+#!/bin/sh
+# postrm script for grase-www-portal
+
+set -e
+#set -u # Interfers with debconf
+
+
+if [ -f /usr/share/debconf/confmodule ]; then
+ . /usr/share/debconf/confmodule
+fi
+if [ -f /usr/share/dbconfig-common/dpkg/postrm.mysql ]; then
+ . /usr/share/dbconfig-common/dpkg/postrm.mysql
+ dbc_go grase-www-portal $@
+fi
+
+
+if [ "$1" = "purge" ]; then
+ rm -f /etc/grase/radmin.conf
+ if which ucf >/dev/null 2>&1; then
+ ucf --purge /etc/grase/radmin.conf
+ ucfr --purge grase-www-portal /etc/grase/radmin.conf
+ fi
+fi
+
+#DEBHELPER#
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+set -e
+
+
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+#set -x
+
+. /usr/share/debconf/confmodule
+. /usr/share/dbconfig-common/dpkg/prerm.mysql
+dbc_go grase-www-portal $@
+
+#DEBHELPER#
+
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+DEB_AUTO_UPDATE_DEBIAN_CONTROL = true
+
+#DEB_DIVERT_EXTENSION = .grase
+# Replace some base files with simple replacements.
+#DEB_DIVERT_FIiLES_grase-monit-conf += \
+# /etc/issue.net.debathena \
+# /etc/mailname.debathena \
+# /etc/papersize.debathena
+#DEB_TRANSFORM_FILES_grase-monit-conf += \
+# /etc/default/monit.grase \
+# /etc/monit/monitrc.grase
+
+# These files are installed via dh_install from the files/ directory
+# (see debian/grase-conf-monit.install)
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/config-package.mk
+
@@ -0,0 +1 @@
+3.0 (native)
@@ -0,0 +1,48 @@
+# MySQL Navigator Xport
+# Database: radmin
+# root@localhost
+
+# CREATE DATABASE radmin;
+# USE radmin;
+
+#
+# Table structure for table 'auth'
+#
+
+# DROP TABLE IF EXISTS auth;
+CREATE TABLE IF NOT EXISTS `auth` (
+ `username` varchar(50) NOT NULL DEFAULT '',
+ `password` varchar(60) NOT NULL,
+ PRIMARY KEY (`username`),
+ KEY `password` (`password`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1;
+
+INSERT INTO `auth` VALUES ('admin','5c0aaa28ef1b32d86101b59835766187befb98c2a88c6286c'),('support','205e599a4bc20218232707bb1fbb4caf11c5bb634e84aeaa1');
+
+
+#
+# Table structure for table 'settings'
+#
+
+# DROP TABLE IF EXISTS settings;
+CREATE TABLE IF NOT EXISTS `settings` (
+ `setting` varchar(20) NOT NULL,
+ `value` varchar(2000) NOT NULL,
+ PRIMARY KEY (`setting`)
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Settings for GRASE interface';
+
+INSERT INTO `settings` SET
+`setting` ='DBVersion',
+`value` ='1.0';
+
+#
+# Table structure for table 'adminlog'
+
+CREATE TABLE IF NOT EXISTS `adminlog` (
+ `id` INT(11) NOT NULL AUTO_INCREMENT,
+ `timestamp` DATETIME NOT NULL,
+ `username` VARCHAR(100) NULL,
+ `ipaddress` VARCHAR(16) NULL,
+ `action` TEXT NOT NULL,
+ PRIMARY KEY `id` (`id`)
+) ENGINE=innoDB COMMENT ='Log of Admin/Usermin Actions';
@@ -0,0 +1,4 @@
+grase-www-portal grase-www-portal/dbconfig-install boolean true
+grase-www-portal grase-www-portal/mysql/app-pass password
+grase-www-portal grase-www-portal/database-type select mysql
+grase-www-portal grase-www-portal/db/dbname string radmin
@@ -0,0 +1,6 @@
+sql_type: _DBC_DBTYPE_
+sql_server: _DBC_DBSERVER_
+sql_username: _DBC_DBUSER_
+sql_password: _DBC_DBPASS_
+sql_radmindatabase: _DBC_DBNAME_
+sql_command: /usr/bin/mysql

0 comments on commit 353dfb1

Please sign in to comment.