ispman/debian README.Debian, NONE, 1.1 apache.conf, NONE, 1.1 changelog, NONE, 1.1 compat, NONE, 1.1 control, NONE, 1.1 copyright, NONE, 1.1 dirs, NONE, 1.1 ispman-agent.init, NONE, 1.1 ispman-agent.install, NONE, 1.1 ispman-lib.docs, NONE, 1.1 ispman-lib.install, NONE, 1.1 ispman-lib.links, NONE, 1.1 ispman-web.install, NONE, 1.1 ispman-web.links, NONE, 1.1 ispman.conf, NONE, 1.1 mod-perl.apache.conf, NONE, 1.1 rules, NONE, 1.1 watch, NONE, 1.1
Joerg Delker <[email protected]>
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/debian
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv17140/debian
Added Files:
README.Debian apache.conf changelog compat control copyright
dirs ispman-agent.init ispman-agent.install ispman-lib.docs
ispman-lib.install ispman-lib.links ispman-web.install
ispman-web.links ispman.conf mod-perl.apache.conf rules watch
Log Message:
added debian packaging
--- NEW FILE: ispman-web.links ---
etc/ispman/nls.conf usr/share/ispman/conf/nls.conf
etc/ispman/locale usr/share/ispman/conf/locale
--- NEW FILE: ispman-web.install ---
ispman-install/cgi-bin usr/share/ispman
ispman-install/htdocs usr/share/ispman
ispman-install/conf/nls.conf etc/ispman
ispman-install/locale etc/ispman
debian/apache.conf etc/ispman
debian/mod-perl.apache.conf etc/ispman
--- NEW FILE: apache.conf ---
# This should work just by changing ServerName
<VirtualHost *>
ServerName ispman.yourdomain.tld
DocumentRoot /usr/share/ispman/htdocs
ScriptAlias /cgi-bin /usr/share/ispman/cgi-bin
<Directory /usr/share/ispman/cgi-bin>
Options ExecCGI
Allow from all
</Directory>
<Directory /usr/share/ispman/htdocs>
DirectoryIndex index.html index.cgi
AllowOverride None
<Files *.cgi>
Options ExecCGI
AddHandler cgi-script .cgi
</Files>
</Directory>
</VirtualHost>
--- NEW FILE: copyright ---
This package was debianized by Tim Peeler <thp-IfcUDwK111A0aPf6s/[email protected]> on
Mon, 27 Mar 2006 08:15:03 -0500.
It was downloaded from http://ispman.net/
Copyright Holder: Armand A. Verstappen <[email protected]>
License:
This package 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 2 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 package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
--- NEW FILE: ispman-agent.init ---
#! /bin/sh
#
# skeleton example file to build /etc/init.d/ scripts.
# This file should be used to construct scripts for /etc/init.d.
#
# Written by Miquel van Smoorenburg <[email protected]>.
# Modified for Debian
# by Ian Murdock <imurdock-uOfJb789lUI8qNwGfFDJ/[email protected]>.
#
# Version: @(#)skeleton 1.9 26-Feb-2001 [email protected]
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/ispman-agent
NAME=ispman-agent
DESC=ispman-agent
DAEMON_OPTS=nodetach
test -x $DAEMON || exit 0
# Include ispman defaults if available
if [ -f /etc/default/ispman ] ; then
. /etc/default/ispman
fi
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon -m -b --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid
rm -f /var/run/$NAME.pid
echo "$NAME."
;;
#reload)
#
# If the daemon can reload its config files on the fly
# for example by sending it SIGHUP, do it here.
#
# If the daemon responds to changes in its config file
# directly anyway, make this a do-nothing entry.
#
# echo "Reloading $DESC configuration files."
# start-stop-daemon --stop --signal 1 --quiet --pidfile \
# /var/run/$NAME.pid --exec $DAEMON
#;;
restart|force-reload)
#
# If the "reload" option is implemented, move the "force-reload"
# option to the "reload" entry above. If not, "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid
rm -f /var/run/$NAME.pid
sleep 1
start-stop-daemon -m -b --start --quiet --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
--- NEW FILE: rules ---
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
#
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
#
# Modified to make a template file for a multi-binary package with separated
# build-arch and build-indep targets by Bill Allombert 2001
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
config.status: patch-stamp configure
dh_testdir
# Add here commands to configure the package.
./configure --prefix=/
echo "DESTDIR=$(CURDIR)/ispman-install" >> makedefs
#Architecture
build: build-indep
build-indep: build-indep-stamp
build-indep-stamp: config.status
# Add here commands to compile the indep part of the package.
#$(MAKE) doc
$(MAKE)
touch build-indep-stamp
clean: clean-patched unpatch
clean-patched:
dh_testdir
dh_testroot
# Add here commands to clean up after the build process.
-$(MAKE) clean
rm -f makedefs build-indep-stamp
rm -rf $(CURDIR)/ispman-install
dh_clean
unpatch:
dpatch deapply-all
rm -rf patch-stamp debian/patched
patch-stamp:
dpatch apply-all
touch patch-stamp
install: install-indep
install-indep: ispman-install
dh_testdir
dh_testroot
dh_clean -k -i
dh_installdirs -i
# Add here commands to install the indep part of the package into
# debian/<package>-doc.
#INSTALLDOC#
dh_install -i
ispman-install:
$(MAKE) -i install
chmod -x `find ispman-install -type f -exec file \{\} \; | grep -vi 'perl script' | awk -F: '{print $$1}'`
chmod +x ispman-install/bin/*
# Must not depend on anything. This is to be called by
# binary-arch/binary-indep
# in another 'make' thread.
binary-common:
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_installdebconf
# dh_installlogrotate
dh_installinit
# dh_installcron
dh_installman
dh_link
dh_compress
dh_fixperms
chmod +x debian/ispman-agent/usr/sbin/ispman.soap*
dh_perl
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture independant packages using the common target.
binary-indep: build-indep install-indep
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
binary: binary-indep
.PHONY: build clean binary-indep binary install install-indep
--- NEW FILE: ispman-agent.install ---
ispman-install/bin/ispman* usr/sbin
ispman-install/bin/functions usr/share/ispman/lib
ispman-install/bin/ldif* usr/share/ispman/bin
tasks usr/share/ispman
--- NEW FILE: watch ---
# Example watch control file for uscan
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format
# Compulsory line, this is a version 3 file
version=3
# Uncomment to find new files on sourceforge, for debscripts >= 2.9
http://sf.net/ispman/ispman-(.*)\.tar\.gz
--- NEW FILE: changelog ---
ispman (1.3-2) unstable; urgency=low
* Takeover of the maintainership by Andreas John
-- Andreas John <thp-IfcUDwK111A0aPf6s/[email protected]> Tue, 25 Apr 2006 17:12:00 +0200
ispman (1.3-1) unstable; urgency=low
* Initial release (Closes: #359759)
-- Tim Peeler <thp-IfcUDwK111A0aPf6s/[email protected]> Mon, 27 Mar 2006 08:15:03 -0500
--- NEW FILE: ispman-lib.links ---
etc/ispman/ispman.conf usr/share/ispman/conf/ispman.conf
--- NEW FILE: control ---
Source: ispman
Section: web
Priority: optional
Maintainer: Andreas John <[email protected]>
Build-Depends-Indep: debhelper (>= 4.0.0), dpatch
Standards-Version: 3.6.2
Package: ispman-web
Architecture: all
Depends: ${misc:Depends}, ispman-lib, apache2 | httpd-server
Recommends: ispman-agent
Description: ISPMan ISP management system control panel
ISPMan is an ISP management system designed to meet the needs of
the ever growing infrastructure that an ISP has to manage. It was
originally written to manage DNS, Web Virtual hosts and Mail accounts
at large ISPs. Since then it has moved to a modular structure with
help from ispman developers.
.
ispman-web provides the web-based admin and customer interface
.
The administrator's web interface allows one to create or delete domains,
users, dns zones, virtual hosts and other settings. All operations
are put on a dispatch list for another module to take care of.
.
The customer control panel is a simplified version of the administrator's
web interface. It is restricted to managing only their domain. It is
designed for the customer and is similar to customer control panels of
other ISPs using commercial software.
Package: ispman-agent
Architecture: all
Depends: ${misc:Depends}, ispman-lib
Recommends: ispman-web
Description: ISPMan ISP management system agent
ISPMan is an ISP management system designed to meet the needs of
the ever growing infrastructure that an ISP has to manage. It was
originally written to manage DNS, Web Virtual hosts and Mail accounts
at large ISPs. Since then it has moved to a modular structure with
help from ispman developers.
.
ispman-agent is the real work horse for ispman. The agents running
on each server in the group track the dispatch list in the ldap tree.
When a new job is created via the admin or customer web interfaces,
they go to work. If the job is for the web server groups, say, the
agent will modify the virtual host listings as specified. The agent
is the same software on each machine that can do various functions.
Like cron, it sits idle when there is no work to do.
Package: ispman-lib
Architecture: all
Depends: ${misc:Depends}, ${perl:Depends}, libconvert-asn1-perl, libauthen-sasl-perl, liburi-perl, libio-socket-ssl-perl, libio-stringy-perl, libparse-recdescent-perl, liblog-agent-perl, libcgi-session-perl, libimap-admin-perl, libnet-ldap-perl, libdns-zoneparse-perl, libunicode-string-perl, libtext-template-perl, liblocale-maketext-lexicon-perl, libsoap-lite-perl, libxml-sax-perl, libhtml-parser-perl, librfc-rfc822-address-perl
Recommends: ispman-agent, ispman-web, slapd | ldap-server, bind9, apache | httpd-server, webalizer, libapache-mod-ldap
Description: ISPMan ISP management system libraries
ISPMan is an ISP management system designed to meet the needs of
the ever growing infrastructure that an ISP has to manage. It was
originally written to manage DNS, Web Virtual hosts and Mail accounts
at large ISPs. Since then it has moved to a modular structure with
help from ispman developers.
.
ispman-lib provides common libraries for ispman-agent and ispman-web
--- NEW FILE: ispman-lib.docs ---
docs/ARCHITECTURE
docs/DNS_README
docs/POSTFIX_md5_authentication
docs/POSTFIX_README
docs/README
docs/SUPPORT
docs/TODO
docs/UPGRADING
--- NEW FILE: compat ---
4
--- NEW FILE: ispman.conf ---
package ISPMan;
# ISPMan install directory
$Config->{'installDir'} = '/usr/share/ispman';
# ISPMan URL Prefix
# Set this if you have a fixed prefix to reach the ispman interface
$Config->{'ispmanUrlPrefix'} = '';
# LDAP Base DN
# Root of your ISPMan directory information tree (DIT)
$Config->{'ldapBaseDN'} = 'o=ispman,dc=example,dc=com';
# LDAP Root DN
# User that binds to your LDAP server for ISPMan transactions
$Config->{'ldapRootDN'} = 'cn=admin,dc=example,dc=com';
# LDAP root password
$Config->{'ldapRootPass'} = 'secret';
# LDAP server
$Config->{'ldapHost'}= 'localhost';
# LDAP protocol version (v2 or v3)
$Config->{'ldapVersion'} = '3';
# ISPMan root email destination
$Config->{'rootEmail'} = '[email protected]';
# IMAP admin user
# User for mail administation tasks (add/delete/change mailbox)
$Config->{'imapAdminUsername'} = 'cyrus';
# IMAP admin password
$Config->{'imapAdminPass'} = 'secret';
# IMAP port
# for administration interface
$Config->{'imapPort'} = '143';
# ISPMan Debug level
# 0:none, 1:light, 2:heavy, 3:debug
$Config->{'debug'} = '2';
# ISPMan log method
# syslog: send to syslog daemon, old: STDERR/apache err log
$Config->{'logmethod'} = 'syslog';
# ISPMan log facility
# facility to sue for syslog
$Config->{'logfacility'} = 'local3';
# ISPMan log socket
# socket to use for syslog connection (unix | inet)
$Config->{'logsock'} = 'unix';
# For alternative path of locale directory
$Config->{'localeDir'} = "/etc/ispman/locale";
# Should encoding be done from native to UTF-8?
# This is done when storing and reading data from LDAP
# Useful if you want to store non-ascii characters in LDAP
# you will need the Text::Iconv module installed to use the encoding.
# You can get this module from
# http://search.cpan.org/~mpiotr/Text-Iconv-1.2/
# Uncomment if yes
# $Config->{'convert_encoding'} = "1";
# Convert to (mostly utf-8)
# $Config->{'encoding'}{'utf8'} = "utf-8";
# Convert from
# $Config->{'encoding'}{'local'} = "iso-8859-1";
# Set this to 1 if you want to have the experimental messaging_service
# This service allows you to send email to users of a domain or to all
# users in the ISP
# $Config->{'messaging_service'}=0;
# For translators. Set this to 1 and uncomment it and
# It will give you a language menu on top so you can
# change the language from one to another without relogging.
# $Config->{'showLanguageMenu'}=0;
# Objectclasses for different objects
$Config->{'ispmanUserObjectclasses'}=["posixAccount", "ispmanDomainUser", "radiusprofile"];
$Config->{'ispmanGroupObjectclasses'}=["posixGroup", "ispmanDomainUserGroup"];
$Config->{'ispmanVhostObjectclasses'}=["ispmanVirtualHost", "posixAccount", "PureFTPdUser"];
$Config->{'ispmanDomainObjectclasses'}=["posixAccount", "ispmanDomain", "PureFTPdUser"];
$Config->{'ispmanVarSort'}{'account_vars'}=['loginShell','vhostShell','domainShell','defaultHomeDirectoryPath','defaultUserMailQuota','defaultUserFtpQuota','defaultDomainFtpQuota','defaultVhostFtpQuota','defaultMaxAccounts','defaultMaxVhosts'];
$Config->{'ispmanVarSort'}{'apache_vars'}=['apacheVhostsFile','apacheVhostsStyle','apacheVhostsTemplate','apacheVhostsIP','apacheVhostsVIP','apacheStopCommand','apacheReloadCommand','apacheStartCommand','apacheLogsDirectory','apacheStatDirectory','apacheWebalizerPath','modLDAPUserDir','apacheGracefulCommand','apacheGracefulTime','apacheVhostLogDefault','apacheVhostLogDefaultAccess','apacheVhostLogDefaultAccessMessage','apacheDocumentRootOptions','apacheScriptDirOptions','apacheSuspendDirective','apacheAuthLdapModule','apacheVhostsHeader','apacheVhostsFooter'];
$Config->{'ispmanVarSort'}{'dns_vars'}=['namedDir','namedIspmanSubDir','namedPriDir','namedSecDir','namedRevDir','namedConfFile','namedUser','primaryDNS','primaryDNSIP','secondaryDNS','secondaryDNSIP','primaryMX','primaryMXIP','secondaryMX','secondaryMXIP','namedStartCommand','namedStopCommand','namedReloadCommand','dnsMasterEmail','namedConfHeaderFile','namedConfFooterFile','namedBackend','catchAllCNAME','dnsSerialFormat'];
$Config->{'ispmanVarSort'}{'ftp_vars'}=[];
$Config->{'ispmanVarSort'}{'ldap_vars'}=['ldapHost','ldapBaseDN'];
$Config->{'ispmanVarSort'}{'mail_vars'}=['smtpServerReloadCommand','makeMapCommand','smtpServerConfDir','imapMailboxPrefix','imapServerBackend'];
$Config->{'ispmanVarSort'}{'sys_vars'}=['agentFrequency','userPassHashMethod','sleepSecondsBetweenRestart','installDir','rootEmail'];
1;
--- NEW FILE: README.Debian ---
IMPORTANT NOTICE !
The Debian package is _really_ unfinished stuff by now.
We include it in ispman's CVS for public review.
Contributions weclome!
Contact the ISPMan devel Mailing list or
[email protected]
IMPORTANT NOTICE !
ispman for Debian
-----------------
In order to complete installation and configuration you will need to:
* include ispman ldap schemas in your slapd.conf
* configure /etc/ispman/ispman.conf ldap settings for your environment
* load ispman ldif into your ldap database
* configure apache (if you've installed ispman-web)
* configure ispman
In order for ispman to work your ldap database will need to have several
schemas included, some come with openldap (slapd) and some come with
ispman-lib. You will need to have at least the following included in
/etc/ldap/slapd.conf:
core.schema
cosine.schema
nis.schema
misc.schema
inetorgperson.schema
dnszone.schema (/usr/share/ispman/conf/schema)
pureftpd.schema (/usr/share/ispman/conf/schema)
ispman.schema (/usr/share/ispman/conf/schema)
Once you've finished configuring slapd, restart.
Edit and configure /etc/ispman/ispman.conf for your environment. The conf
file is already configured with some sane defaults but will most likely
require tweaking for your particular ldap settings.
To load the ispman ldif you will need to execute the following commands:
cd /usr/share/ispman
cat conf/ldif/ispman.ldif | ./bin/ispman.substConf | \
./bin/ispman.ldifload -f -
There is a sample apache.conf file in /etc/ispman/ that you can configure
and include in your apache/apache-ssl/apache2 conf dir. Alternatively, you
can use a mod-perl enabled apache server with
/etc/ispman/mod-perl.apache.conf
Once you've configured slapd, apache and ispman.conf you will need to
finalize your configuration in ldap. To do that you will need to login to
the ispman web interface using the location you specified in apache. Use
ispman to login and the password you specified in ispman.conf (ldapRootPass)
-- Tim Peeler <thp-IfcUDwK111A0aPf6s/[email protected]>, Mon, 27 Mar 2006 08:15:03 -0500
--- NEW FILE: ispman-lib.install ---
ispman-install/lib usr/share/ispman
ispman-install/templates usr/share/ispman
ispman-install/var usr/share/ispman
ispman-install/conf/ldif usr/share/ispman/conf
ispman-install/conf/schema usr/share/ispman/conf
debian/ispman.conf etc/ispman/
--- NEW FILE: dirs ---
usr/share/ispman
usr/share/ispman/conf
usr/share/ispman/tasks
--- NEW FILE: mod-perl.apache.conf ---
# This should work with apache/apache-ssl with mod-perl
# it may be difficult to get this working with apache2
LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so
<VirtualHost *>
ServerName ispman.yourdomain.tld
DocumentRoot /usr/share/ispman/htdocs
PerlModule Apache::Registry
ScriptAlias /cgi-bin /usr/share/ispman/cgi-bin
<Directory /usr/share/ispman/cgi-bin>
Options ExecCGI
Allow from all
</Directory>
<Directory /usr/share/ispman/htdocs>
DirectoryIndex index.html index.cgi
AllowOverride None
<Files *.cgi>
Options ExecCGI
SetHandler perl-script
PerlHandler Apache::Registry
</Files>
</Directory>
</VirtualHost>