Commit 8843356a authored by Xavier Guimard's avatar Xavier Guimard

Now Debian installs pl files as symbolic links

parent 45bd8a68
......@@ -11,7 +11,7 @@ SESSIONSDIR=/var/lib/lemonldap-ng/sessions
if [ "$1" == "configure" ]
then
cp $EXAMPLEHANDLERFILE $HANDLERFILE
[ -e $HANDLERFILE ] || cp $EXAMPLEHANDLERFILE $HANDLERFILE
chmod 770 $SESSIONSDIR
chmod 770 $SESSIONSDIR/lock
chown -R www-data:www-data $SESSIONSDIR
......
/etc/lemonldap-ng
/usr/share/lemonldap-ng/bin
/usr/share/lemonldap-ng/manager
/usr/share/lemonldap-ng/manager-skins
/var/lib/lemonldap-ng/manager
......@@ -2,5 +2,6 @@
/usr/share/perl5/auto/Lemonldap/NG/Manager
debian/manager-apache*.conf /etc/lemonldap-ng
/usr/share/lemonldap-ng/manager-skins
/usr/share/lemonldap-ng/manager
/var/lib/lemonldap-ng/manager
/usr/share/lemonldap-ng/bin/lmConfigEditor
......@@ -5,13 +5,15 @@ set -e
. /usr/share/debconf/confmodule
MANAGERFILE=/var/lib/lemonldap-ng/manager/index.pl
SESSIONSFILE=/var/lib/lemonldap-ng/manager/sessions.pl
REFDIR=/usr/share/lemonldap-ng/manager/
RUNDIR=/var/lib/lemonldap-ng/manager/
FILES=$(find $REFDIR -name '*pl' -printf "%f ")
if [ "$1" == "configure" ]
then
chmod +x $SESSIONSFILE
chmod +x $MANAGERFILE
for file in $FILES; do
[ -e "$RUNDIR$file" ] || ln -s $REFDIR$file $RUNDIR$file
done
fi
/etc/lemonldap-ng
/usr/share/lemonldap-ng/bin
/usr/share/lemonldap-ng/portal
/usr/share/lemonldap-ng/portal-skins
/var/lib/lemonldap-ng/portal
/var/lib/lemonldap-ng/sessions
/var/lib/lemonldap-ng/sessions/lock
......@@ -4,5 +4,6 @@
/usr/share/perl5/auto/Lemonldap/NG/Portal
/usr/share/perl5/Lemonldap/NG/Portal*
/usr/share/lemonldap-ng/bin/buildPortalWSDL
/usr/share/lemonldap-ng/portal
/var/lib/lemonldap-ng/portal
debian/portal-apache*.conf /etc/lemonldap-ng
......@@ -5,8 +5,9 @@ set -e
. /usr/share/debconf/confmodule
EXAMPLEPORTALFILE=/usr/share/doc/liblemonldap-ng-portal-perl/examples/index_skin.pl
PORTALFILE=/var/lib/lemonldap-ng/portal/index.pl
REFDIR=/usr/share/lemonldap-ng/portal/
RUNDIR=/var/lib/lemonldap-ng/portal/
FILES=$(find $REFDIR -name '*pl' -printf "%f ")
SESSIONSDIR=/var/lib/lemonldap-ng/sessions
BUILDPORTALWSDL=/usr/share/lemonldap-ng/bin/buildPortalWSDL
......@@ -14,13 +15,12 @@ WSDLFILE=/var/lib/lemonldap-ng/portal/portal.wsdl
if [ "$1" == "configure" ]
then
[ -e $PORTALFILE ] || cp $EXAMPLEPORTALFILE $PORTALFILE
chmod +x $PORTALFILE
chmod 770 $SESSIONSDIR
chmod 770 $SESSIONSDIR/lock
chown -R www-data:www-data $SESSIONSDIR
$BUILDPORTALWSDL > $WSDLFILE || true
for file in $FILES; do
[ -e "$RUNDIR$file" ] || ln -s $REFDIR$file $RUNDIR$file
done
chmod 770 $SESSIONSDIR
chmod 770 $SESSIONSDIR/lock
chown -R www-data:www-data $SESSIONSDIR
$BUILDPORTALWSDL > $WSDLFILE || true
fi
......@@ -83,7 +83,9 @@ install: build
$(CURDIR)/debian/tmp$(LMSHAREDIR)manager-skins/*/*.tpl \
$(CURDIR)/debian/tmp$(LMSHAREDIR)portal-skins/*/*.tpl
# postinst provides initial portal, manager and sessions-explorer
rm -f debian/tmp/var/lib/lemonldap-ng/portal/index.pl
mkdir debian/tmp/usr/share/lemonldap-ng/manager debian/tmp/usr/share/lemonldap-ng/portal
mv debian/tmp/var/lib/lemonldap-ng/portal/*.pl debian/tmp/usr/share/lemonldap-ng/portal/
mv debian/tmp/var/lib/lemonldap-ng/manager/*pl debian/tmp/usr/share/lemonldap-ng/manager/
# Build architecture-independent files here.
binary-indep: build install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment