debian packages stuff

Monotone-Parent: 0e5ecbd534de16df76709927dc37b1bc83801546
Monotone-Revision: 94772b227e4be6ef77cbed6831b420c774e9d80d

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-07-28T19:07:51
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-07-28 19:07:51 +00:00
parent 76d6f9a398
commit 42c44ad910
12 changed files with 350 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
sogo (1.0.3) UNRELEASED; urgency=low
* Initial package
-- Cyril Robert <crobert@inverse.ca> Tue, 23 Dec 2008 00:49:45 +0100
+1
View File
@@ -0,0 +1 @@
7
+22
View File
@@ -0,0 +1,22 @@
Source: sogo
Priority: optional
Maintainer: Cyril Robert <crobert@inverse.ca>
Build-Depends: debhelper (>= 7), autotools-dev, gnustep-base-common, gnustep-base-runtime, gnustep-make, libsope-appserver-dev, libsope-core-dev, libsope-ldap-dev, libsope-mime-dev, libsope-xml-dev
Section: web
Standards-Version: 3.7.3
Package: sogo
Section: web
Architecture: i386
Depends: gnustep-base-common, gnustep-base-runtime, libsope-core, libsope-appserver, libsope-ldap, libsope-cards
Description: SOGo
SOGo is a groupware server built around OpenGroupware.org (OGo) and
the SOPE application server. It focuses on scalability.
The Inverse edition of this project has many feature enhancements:
- CalDAV and GroupDAV compliance
- full handling of vCard as well as vCalendar/iCalendar formats
- support for folder sharing and ACLs
The Web interface has been rewritten in an AJAX fashion to provided a faster
UI for the users, consistency in look and feel with the Mozilla applications,
and to reduce the load of the transactions on the server.
+24
View File
@@ -0,0 +1,24 @@
This package was debianized by Cyril <support@inverse.ca> on
Mon, 27 Jul 2009 10:57:51 -0400.
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 Name OfAuthor>
<likewise for another author>
License:
<Put the license of the package here indented by 4 spaces>
The Debian packaging is (C) 2009, Cyril <support@inverse.ca> and
is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
Vendored Executable
+92
View File
@@ -0,0 +1,92 @@
#!/usr/bin/make -f
# -*- makefile -*-
export DH_VERBOSE=1
config.status: configure
dh_testdir
LDFLAGS="-Wl,-z,defs" ./configure
#Architecture
build: build-arch build-indep
build-arch: build-arch-stamp
build-arch-stamp: config.status
# Add here commands to compile the arch part of the package.
#$(MAKE)
touch $@
build-indep: build-indep-stamp
build-indep-stamp: config.status
# Add here commands to compile the indep part of the package.
#$(MAKE) doc
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp
make clean
dh_clean
install: install-indep install-arch
install-indep:
dh_testdir
dh_testroot
dh_clean -k -i
dh_installdirs -i
dh_install -i
install-arch:
dh_testdir
dh_testroot
dh_clean -k -s
dh_installdirs -s
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp GNUSTEP_INSTALLATION_DOMAIN=SYSTEM install
mkdir -p debian/tmp/etc/init.d/sogod
mkdir -p debian/tmp/etc/cron.daily
mkdir -p debian/tmp/var/run/sogo
mkdir -p debian/tmp/var/log/sogo
mkdir -p debian/tmp/var/spool/sogo
mkdir -p debian/tmp/etc/default
mkdir -p debian/tmp/etc/apache2/conf.d
mkdir -p debian/tmp/usr/sbin
mkdir -p debian/tmp/usr/share/GNUstep/Tools
echo "DAEMON=/usr/sbin/sogod" >> debian/tmp/etc/default/sogo
cp Scripts/sogo-init.d-debian debian/tmp/etc/init.d/sogod
cp Scripts/tmpwatch debian/tmp/etc/cron.daily/sogo-tmpwatch
cp Apache/SOGo.conf debian/tmp/etc/apache2/conf.d/
mv debian/tmp/usr/sbin/sogod debian/tmp/usr/share/GNUstep/Tools
cp Scripts/sogod-wrapper debian/tmp/usr/sbin/sogod
dh_install -s
binary-common:
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
dh_makeshlibs
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-indep: build-indep install-indep
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
# Build architecture dependant packages using the common target.
binary-arch: build-arch install-arch
$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
binary: binary-arch binary-indep
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch
+3
View File
@@ -0,0 +1,3 @@
etc
var
usr
+4
View File
@@ -0,0 +1,4 @@
NEWS
README
TODO
ChangeLog
+3
View File
@@ -0,0 +1,3 @@
etc/*
usr/*
var/*
Vendored Executable
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
set -e
/usr/sbin/groupadd -f -K GID_MIN=100 -K GID_MAX=500 sogo
USERS=\`getent passwd|grep sogo|sed -e 's/\([a-zA-Z]*:\)\(.*\)/\1/g'\`
if [ \"\$USERS\" != \"sogo:\" ] ; then
echo \"Adding user sogo\"
useradd -d /tmp -g sogo -K UID_MIN=100 -K UID_MAX=500 -K PASS_MAX_DAYS=-1 -s
/bin/false sogo
fi
chown sogo /var/run/sogo
chown sogo /var/spool/sogo
chown sogo /var/log/sogo
update-rc.d sogod defaults
/sbin/ldconfig
Vendored Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
set -e
userdel sogo||true
update-rc.d SOGo remove ||true
Vendored Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
set -e
/etc/init.d/sogod stop