[Slashdotjp-dev 594] CVS update: slashjp/debian

Back to archive index

Tatsuki SUGIURA sugi****@users*****
2006年 8月 9日 (水) 18:54:03 JST


Index: slashjp/debian/changelog
diff -u /dev/null slashjp/debian/changelog:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/changelog	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,12 @@
+slash (2.5.0.119-1) unstable; urgency=low
+
+  * catchup upstream CVS.
+
+ -- Tatsuki Sugiura <sugi****@nemui*****>  Wed,  9 Aug 2006 16:44:50 +0900
+
+slash (2.5.0.94-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Tatsuki Sugiura <sugi****@nemui*****>  Tue,  9 May 2006 16:15:50 +0900
+
Index: slashjp/debian/command-wrapper
diff -u /dev/null slashjp/debian/command-wrapper:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/command-wrapper	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+myname=`basename $0`
+myname=${myname#slash-}
+
+exec /usr/share/slash/bin/$myname "$@"
Index: slashjp/debian/compat
diff -u /dev/null slashjp/debian/compat:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/compat	Wed Aug  9 18:54:03 2006
@@ -0,0 +1 @@
+4
Index: slashjp/debian/control
diff -u /dev/null slashjp/debian/control:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/control	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,34 @@
+Source: slash
+Section: web
+Priority: extra
+Maintainer: Tatsuki Sugiura <sugi****@nemui*****>
+Build-Depends: debhelper (>= 4.0.0), cdbs, libperl-dev, apache-dev, libapache-mod-perl, libcompress-zlib-perl, libdbix-password-perl, libsoap-lite-perl
+Standards-Version: 3.6.2
+
+Package: slash-common
+Architecture: any
+Depends: perl, perl-modules, libcompress-zlib-perl, libxml-parser-perl, libdbix-password-perl (>= 1.8-5), libnet-perl, libtimedate-perl, libapache-dbilogger-perl, libhtml-parser-perl, libhtml-format-perl, libxml-rss-perl, libimage-size-perl, libemail-valid-perl, libtemplate-perl, libmail-sendmail-perl, libsoap-lite-perl, liblingua-stem-perl, libhtml-template-perl, libmime-types-perl, libparallel-useragent-perl, libhtml-popuptreeselect-perl, libnet-ldap-perl, libjcode-pm-perl, ${shlibs:Depends}, ${misc:Depends}
+Description: The code that runs Slashdot - common files
+ Slash -- Slashdot Like Automated Storytelling Homepage -- is an architecture
+ to put together web sites.  It comes with functionality for posting articles,
+ conducting polls, having discussions, and can be extended in innumerable ways.
+ Slash uses the combination apache+perl+mysql.
+
+Package: slash-backend
+Architecture: any
+Depends: adduser, mysql-server-4.1, slash-common, libschedule-cron-perl, ${shlibs:Depends}, ${misc:Depends}
+Description: The code that runs Slashdot - Backend server
+ Slash -- Slashdot Like Automated Storytelling Homepage -- is an architecture
+ to put together web sites.  It comes with functionality for posting articles,
+ conducting polls, having discussions, and can be extended in innumerable ways.
+ Slash uses the combination apache+perl+mysql.
+
+Package: slash-frontend
+Architecture: any
+Depends: slash-common, libapache-mod-perl, libapache-request-perl, libgd-graph-perl, apache, ${shlibs:Depends}, ${misc:Depends}
+Recommends: libgd-graph-perl
+Description: The code that runs Slashdot - Frontend server settings
+ Slash -- Slashdot Like Automated Storytelling Homepage -- is an architecture
+ to put together web sites.  It comes with functionality for posting articles,
+ conducting polls, having discussions, and can be extended in innumerable ways.
+ Slash uses the combination apache+perl+mysql.
Index: slashjp/debian/copyright
diff -u /dev/null slashjp/debian/copyright:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/copyright	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,48 @@
+This package was debianized by Tatsuki Sugiura <sugi****@nemui*****> on
+Tue,  9 May 2006 16:15:50 +0900.
+
+It was downloaded from CVS, see http://slashcode.com/ for details.
+
+Copyright Holder:
+
+These are the authors of Slash.
+
+	Rob Malda		malda****@slash*****
+	Jonathon Pater		pater****@slash*****
+	Patrick Galbraith	patg****@patg*****
+	Chris Nandor		pudge****@ostg*****
+	Brian Aker		brian****@tange*****
+	Cliff Wood		cliff****@slash*****
+	Jamie McCarthy		jamie****@mccar*****
+	Tim Vroom		vroom****@slash*****
+
+Special thanks to some of the outstanding contributors to Slash,
+who have helped with various kinds of feedback, all of it invaluable.
+(Our apologies if we left you out; please send Chris a message to
+rectify it.)
+
+	Dave Aiello		dave_aiell****@ctdat*****
+	Daniel "Yazz" Atlas	yazz****@ostg*****
+	Alessio Bragadini	aless****@albou*****
+	Atif Ghaffar		atif****@devel*****
+	Dave Olszewski		dave.****@ostg*****
+	Nathan Vonnahme		natha****@theth*****
+	Bernard de Rubinat	berna****@netga*****
+	Steinar H. Gunderson	sgund****@bigfo*****
+	Jesse Hirsh		jesse****@openf*****
+	Blake Day		blake****@artis*****
+	Eric Dannewitz		ericd****@jazz-*****
+	Adam Khan		ask****@engag*****
+	David Tseng		david****@morri*****
+	The Cunctator		cunct****@kband*****
+	Adam Khan		ask****@engag*****
+	con			condu****@certi*****
+        Shane Zatezalo          shane****@lotta*****
+	Alvaro del Castillo	acs****@barra*****
+	Stephen Clouse		thebr****@warpc*****
+	chromatic		chrom****@rmci*****
+	Dan Stahlke		dans****@infoi*****
+
+License: GPL2
+In Debian, see /usr/share/common-licenses/GPL2 for details
+
Index: slashjp/debian/dirs
diff -u /dev/null slashjp/debian/dirs:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/dirs	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
Index: slashjp/debian/rules
diff -u /dev/null slashjp/debian/rules:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/rules	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,72 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+DEB_DH_INSTALL_SOURCEDIR := debian/tmp
+LOCAL_PERL_MAKEFLAGS = "DESTDIR=$(DEB_DESTDIR)"
+DEB_INSTALL_EXAMPLES_slash-backend = $(DEB_DESTDIR)/usr/share/slash/httpd
+DEB_DH_INSTALLINIT_ARGS = --init-script=slash
+DEB_DH_COMPRESS_ARGS = -Xutils/
+
+clean::
+	-$(MAKE) clean
+	-$(MAKE) -C Slash distclean
+	-for d in plugins/* tagboxes/*; do $(MAKE) -C $$d distclean; done
+	find . -name Makefile.old | xargs -r rm -f
+
+
+common-build-arch::
+	cd Slash && perl Makefile.PL
+	$(MAKE) -C Slash
+	set -e; for d in plugins/* tagboxes/*; do \
+	  (cd $$d && \
+	    if test -f Makefile.PL; then \
+	      perl Makefile.PL; \
+	      $(MAKE); \
+	      $(MAKE) test; \
+	    fi \
+	  ) \
+	done
+
+common-install-arch::
+	$(MAKE) -C Slash install_vendor DESTDIR=$(DEB_DESTDIR)
+	for d in plugins/* tagboxes/*; do \
+	  test -f $$d/Makefile.PL \
+	  && $(MAKE) -C $$d install_vendor DESTDIR=$(DEB_DESTDIR); \
+	done
+	$(MAKE) install -o plugins -o slash install -o tagboxes \
+		SLASH_PREFIX=$(DEB_DESTDIR)/usr/share/slash \
+		USER=nobody GROUP=nogroup
+	find $(DEB_DESTDIR)/usr/share/slash/plugins \
+		$(DEB_DESTDIR)/usr/share/slash/tagboxes \
+		-name Makefile.old -o -name Makefile.PL \
+		-o -name test.pl -o -name t | xargs -r rm -fr
+	find $(DEB_DESTDIR)/usr/lib/perl5 -name \*.so | xargs -r strip --remove-section=.comment --remove-section=.note --strip-unneeded
+	
+	# apply local patch
+	for f in $(CURDIR)/debian/append-patches/*; do \
+	  (cd $(DEB_DESTDIR); patch -p1 < $$f) || exit; \
+	done
+	
+	# fix perm...
+	find $(DEB_DESTDIR)/usr/share/slash/plugins \
+		$(DEB_DESTDIR)/usr/share/slash/tagboxes \
+		$(DEB_DESTDIR)/usr/share/slash/themes \
+		-type f -a -not -name \*.pl | xargs -r chmod -x
+	for f in Blob/blobLoader Messages/populate_message_log_stats.plx \
+		PollBooth/rebuildAutoPoll Zoo/rebuildPeople \
+		Zoo/rebuildPerson ; do \
+	  chmod +x $(DEB_DESTDIR)/usr/share/slash/plugins/$$f; \
+	done
+	chmod +x $(DEB_DESTDIR)/usr/share/perl5/Slash/block_proxy_net.pl
+
+install/slash-backend::
+	mkdir -p $(CURDIR)/debian/$(cdbs_curpkg)/var/lib/slash/site
+	mkdir -p $(CURDIR)/debian/$(cdbs_curpkg)/var/lib/slash/httpd
+	install -m 755 $(CURDIR)/debian/command-wrapper \
+		$(CURDIR)/debian/$(cdbs_curpkg)/usr/bin/slash-command-wrapper
+	mkdir -p $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg)
+	cp -a $(CURDIR)/utils $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg)
+	for f in `find $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/$(cdbs_curpkg)/utils -type f`; do \
+	  perl -i -npe '$$.==1 and m|#!(.*/)?perl( .*)?$$| and $$_="#!/usr/bin/perl$2\n"' $$f; \
+	done
Index: slashjp/debian/slash-backend.dirs
diff -u /dev/null slashjp/debian/slash-backend.dirs:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-backend.dirs	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
Index: slashjp/debian/slash-backend.init.d
diff -u /dev/null slashjp/debian/slash-backend.init.d:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-backend.init.d	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,191 @@
+#!/bin/sh
+# This code is a part of Slash, and is released under the GPL.
+# Copyright 1997-2005 by Open Source Technology Group. See README
+# and COPYING for more information, or see http://slashcode.com/.
+# $Id: slash-backend.init.d,v 1.1 2006/08/09 09:54:03 sugi Exp $
+
+# /etc/init.d/slash
+#
+# written by Yazz Atlas for the Slashteam... 
+# 	with assists from:
+#		Jamie McCarthy
+#		Cliff Wood
+#		... and a cast of several.
+
+PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin";
+
+# Slash home
+PROGNAME="slashd";
+DATADIR="/usr/share/slash";
+SLASHD="$DATADIR/sbin/$PROGNAME";
+SLASHSITE="$DATADIR/slash.sites";
+
+# To figure out where things are...
+TZ="GMT";
+export TZ;
+
+WHICH_CAT=`which cat`;
+WHICH_CUT=`which cut`;
+WHICH_PS=`which ps`;
+WHICH_GREP=`which grep`;
+WHICH_UNAME=`which uname`;
+WHICH_AWK=`which awk`;
+
+# if you use sudo, create a file called mysudo in $DATADIR, containing
+# your sudo line, like "sudo -u slashdot"
+# or "sudo -u foo --shell='/bin/sh'"
+MYSUDO=`cat $DATADIR/mysudo 2>/dev/null`
+
+# This prolly ain't 100% accurate, but it should be good enough.
+OS=`$WHICH_UNAME | $WHICH_AWK '{print $1}'`;
+
+if [ ! -f $SLASHSITE ] ; then
+	echo "NOT Starting $PROGNAME: No $SLASHSITE";
+	exit 0;
+fi
+
+GRAB_CONFIG=`$WHICH_CAT $SLASHSITE | $WHICH_CUT -d"#" -f1`;
+
+start_slashd () {
+	# There are differing syntaxes of "su" between OSes
+	# and even between different distributions of the same
+	# OS. If you have an OS that isn't listed here (or is
+	# a different case of one listed here [ie Red Hat Linux,
+	# Debian Linux]) please add in the necessary logic and
+	# send in a patch. Thanks!
+
+	# if you aren't using GMT for internal dates, please change
+	# the appropriate lines, below.  But why wouldn't you?
+
+	if [ "$MYSUDO" ] ; then
+		TZ=GMT $MYSUDO $SLASHD $VIRTUAL_USER_NAME &
+	elif [ "$OS" = "FreeBSD" ] ; then
+		TZ=GMT su $USERNAME -c "$SLASHD $VIRTUAL_USER_NAME" &
+	elif [ "$OS" = "Linux" ] ; then 
+		su --shell="/bin/sh" - $USERNAME -c "TZ=GMT $SLASHD $VIRTUAL_USER_NAME" &
+	else
+		su - $USERNAME -c "TZ=GMT $SLASHD $VIRTUAL_USER_NAME" &
+	fi
+}
+
+break_parts () {
+	# This is used over and over to break apart the need
+	# variables.
+
+	VIRTUAL_USER_NAME=`echo $server_name | $WHICH_CUT -d":" -f1`;
+	USERNAME=`echo $server_name | $WHICH_CUT -d":" -f2`;
+	SITENAME=`echo $server_name | $WHICH_CUT -d":" -f3`;
+	RUNNINGPID="$DATADIR/site/$SITENAME/logs/$PROGNAME.pid";
+}
+
+stop_slashd () {
+	# This will restart and remove any left over PID files
+	# since they can't help anyone. Oh wait, they are useful
+	# to verify is slashd is really running. The keepalive
+	# choice looks for thoses PID files to see if slashd
+	# is hanging about.
+
+	if [ -f $RUNNINGPID ] ; then
+		echo -n "Stopping $PROGNAME $VIRTUAL_USER_NAME: ";
+		if ! $MYSUDO kill `$WHICH_CAT $RUNNINGPID` ; then
+			echo -n "...using kill -9 to make sure ...";
+			sleep 3;
+			$MYSUDO kill -9 `$WHICH_CAT $RUNNINGPID`;
+			$MYSUDO rm -f $RUNNINGPID;
+		fi
+		echo "ok.";
+	else
+		echo "$PROGNAME $VIRTUAL_USER_NAME has no PID file";
+	fi
+}
+
+check_variable () {
+	# Just want to print things out so I can see what we are 
+	# getting.
+
+	echo "VIRTUAL_USER_NAME=$VIRTUAL_USER_NAME";
+	echo "USERNAME=$USERNAME";
+	echo "SITENAME=$SITENAME";
+	echo "RUNNINGPID=${RUNNINGPID}";
+	echo "PID=`cat ${RUNNINGPID}`";
+}
+
+
+# OK now that we set thing above it just matter of calling them in the right
+# order. I broke thing up in to functions since I was tired of retyping the 
+# same things over and over.
+
+if [ -z "`echo $GRAB_CONFIG | $WHICH_GREP :`" ] ; then
+	echo "NOT Starting/stopping $PROGNAME: No sites in $SLASHSITE";
+	exit 0;
+fi
+
+case "$1" in
+	start)
+		for server_name in $GRAB_CONFIG; do
+			break_parts;
+			echo -n "Starting $PROGNAME $VIRTUAL_USER_NAME: ";
+			start_slashd;
+			echo "ok PID = $!";
+		done
+		;;
+
+	stop)
+		for server_name in $GRAB_CONFIG; do
+			break_parts;
+			stop_slashd;
+		done
+		;;
+
+	keepalive)
+		for server_name in $GRAB_CONFIG; do
+			break_parts;
+			if [ ! -f $RUNNINGPID ] ;then
+				echo -n "Restarting $PROGNAME $VIRTUAL_USER_NAME, no PID file: ";
+				start_slashd;
+				echo "ok PID = $!";
+			else
+				# OK, this might not work on every platform since the "ps"
+				# is different on alot of OSes.
+				# Once people submit fixes I will pull this into a similar
+				# check like the one for "su".
+				if ! $WHICH_PS wh -p `$WHICH_CAT $RUNNINGPID` | $WHICH_GREP $PROGNAME > /dev/null ; then
+					echo -n "Restarting $PROGNAME $VIRTUAL_USER_NAME, no valid PID file: ";
+					rm -f $RUNNINGPID;
+					start_slashd;
+					echo "ok PID = $!";
+				fi
+			fi
+		done
+		;;
+
+	restart)
+		$0 stop;
+		echo -n "Sleeping 10 seconds to be clean: "; 
+		sleep 10;
+		echo "ok.";
+		$0 start;
+		;;
+
+	checkvars)
+		echo "The contents of $SLASHSITE:";
+		for server_name in $GRAB_CONFIG; do
+			echo "  $server_name";
+		done
+		for server_name in $GRAB_CONFIG; do
+			echo "";
+			break_parts;
+			check_variable;
+		done
+		echo "";
+		;;
+
+	*)
+		echo "Debian Usage: /etc/init.d/$0 {start|stop|restart|keepalive|checkvars}";
+		echo "Redhat Usage: /etc/rc.d/init.d/$0 {start|stop|restart|keepalive|checkvars}";
+		echo "Other Usage: /usr/local/sbin/$0 {start|stop|restart|keepalive|checkvars}";
+		exit 1;
+		;;
+esac
+
+exit 0;
Index: slashjp/debian/slash-backend.install
diff -u /dev/null slashjp/debian/slash-backend.install:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-backend.install	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,2 @@
+usr/share/slash/bin
+usr/share/slash/sbin
Index: slashjp/debian/slash-backend.links
diff -u /dev/null slashjp/debian/slash-backend.links:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-backend.links	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,14 @@
+usr/share/slash/bin/backup-blocks	usr/bin/slash-backup-blocks
+usr/share/slash/bin/bitchslap		usr/bin/slash-bitchslap
+usr/share/slash/bin/chkuser		usr/bin/slash-chkuser
+usr/share/slash/bin/mechmonkey		usr/bin/slash-mechmonkey
+usr/share/slash/bin/modslap		usr/bin/slash-modslap
+usr/share/slash/bin/reload_armor	usr/bin/slash-reload_armor
+usr/share/slash/bin/slashmon		usr/bin/slash-slashmon
+usr/share/slash/bin/symlink-tool	usr/bin/slash-symlink-tool
+usr/share/slash/bin/template-check	usr/bin/slash-template-check
+usr/share/slash/bin/template-tool	usr/bin/slash-template-tool
+usr/bin/slash-command-wrapper		usr/bin/slash-runtask
+usr/bin/slash-command-wrapper		usr/bin/slash-install-slashsite
+usr/bin/slash-command-wrapper		usr/bin/slash-install-theme
+usr/bin/slash-command-wrapper		usr/bin/slash-install-plugin
Index: slashjp/debian/slash-backend.logrotate
diff -u /dev/null slashjp/debian/slash-backend.logrotate:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-backend.logrotate	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,12 @@
+/var/lib/slash/site/*/logs/*.log {
+	weekly
+	missingok
+	rotate 12
+	compress
+	delaycompress
+	notifempty
+	sharedscripts
+	postrotate
+		/etc/init.d/slash restart > /dev/null
+	endscript
+}
Index: slashjp/debian/slash-backend.postinst
diff -u /dev/null slashjp/debian/slash-backend.postinst:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-backend.postinst	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,46 @@
+#! /bin/sh
+# postinst script for slash
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+case "$1" in
+    configure)
+      id slash >/dev/null 2>&1 || adduser --system --no-create-home --group --disabled-password --disabled-login slash
+      test -f /var/lib/slash/slash.sites || touch /var/lib/slash/slash.sites
+      test -f /var/lib/slash/httpd/slash.conf || cp -a /usr/share/doc/slash-backend/examples/httpd/slash.conf /var/lib/slash/httpd/
+      chown slash:slash /var/lib/slash/slash.sites /var/lib/slash/site
+      chown -R slash:slash /var/lib/slash/httpd
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+
Index: slashjp/debian/slash-common.docs
diff -u /dev/null slashjp/debian/slash-common.docs:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-common.docs	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,3 @@
+README
+INSTALL
+docs
Index: slashjp/debian/slash-common.install
diff -u /dev/null slashjp/debian/slash-common.install:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-common.install	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,7 @@
+usr/lib/perl5
+usr/share/man
+usr/share/perl5
+usr/share/slash/plugins
+usr/share/slash/tagboxes
+usr/share/slash/sql
+usr/share/slash/themes
Index: slashjp/debian/slash-common.links
diff -u /dev/null slashjp/debian/slash-common.links:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-common.links	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,3 @@
+var/lib/slash/slash.sites	usr/share/slash/slash.sites
+var/lib/slash/site		usr/share/slash/site
+var/lib/slash/httpd		usr/share/slash/httpd
Index: slashjp/debian/slash-frontend.README.Debian
diff -u /dev/null slashjp/debian/slash-frontend.README.Debian:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-frontend.README.Debian	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,4 @@
+README for slash-frontend
+
+If you don't run frontend and backend in semae server,
+you need to mount /var/lib/slash from backend via NFS.
Index: slashjp/debian/slash-frontend.links
diff -u /dev/null slashjp/debian/slash-frontend.links:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-frontend.links	Wed Aug  9 18:54:03 2006
@@ -0,0 +1 @@
+var/lib/slash/httpd/slash.conf etc/apache/conf.d/slash.conf
Index: slashjp/debian/slash-frontend.postinst
diff -u /dev/null slashjp/debian/slash-frontend.postinst:1.1
--- /dev/null	Wed Aug  9 18:54:03 2006
+++ slashjp/debian/slash-frontend.postinst	Wed Aug  9 18:54:03 2006
@@ -0,0 +1,42 @@
+#! /bin/sh
+# postinst script for slash
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+case "$1" in
+    configure)
+      id slash >/dev/null 2>&1 || adduser --system --no-create-home --group --disabled-password slash
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+


Slashdotjp-dev メーリングリストの案内
Back to archive index