Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
258
Issues
258
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
a782f5e6
Commit
a782f5e6
authored
Jun 02, 2009
by
Clément OUDOT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ERASECONFIG parameter
parent
56f7f863
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
21 deletions
+29
-21
build/lemonldap-ng/Makefile
build/lemonldap-ng/Makefile
+29
-21
No files found.
build/lemonldap-ng/Makefile
View file @
a782f5e6
...
...
@@ -75,7 +75,7 @@ DNSDOMAIN=example.com
# LDAP parameters
LDAPHOST
=
localhost
LDAPPORT
=
389
LDAPSUFFIX
=
dc
=
example,dc
=
net
LDAPSUFFIX
=
dc
=
example,dc
=
com
# Other
VERSION
=
`
head
-n1
changelog |sed
-e
's/lemonldap-ng (//'
-e
's/).*$$//'
`
...
...
@@ -84,6 +84,7 @@ SRCHANDLERDIR=lemonldap-ng-handler
SRCPORTALDIR
=
lemonldap-ng-portal
SRCMANAGERDIR
=
lemonldap-ng-manager
EXAMPLELANG
=
en
# For static Manager example only
ERASECONFIG
=
1
# Set to 0 if you do not want to replace your configuration
all
:
configure common handler manager portal
@
echo
...
...
@@ -212,18 +213,18 @@ install_bin: install_libs install_conf_dir
install_site
:
install_manager_site install_portal_site install_handler_site install_test_site install_examples_site install_doc_site
# Site install
@
install
-v
-d
$(RCONFDIR)
#
Apache configuration files
@
cp
--remove-destination
_example/etc/apache
*
$(RCONFDIR)
@
perl
-i
-pe
's#__HANDLER__#
${HANDLERDIR}
/MyHandler.pm#
; \
s/__DNSDOMAIN__/
$(DNSDOMAIN)
/g
; \
s#__PORTALDIR__#
$(PORTALDIR)
/#
g; \
s#__MANAGERDIR__#
$(MANAGER
DIR)
/#g; \
s#__TESTDIR__#
$(TEST
DIR)
/#g; \
s#__DOCDIR__#
$(DOCDIR)
/#g;'
$(RCONFDIR)
/apache
*
# File for /etc/hosts inclusion
@
cp
--remove-destination
_example/etc/for_etc_hosts
$(RCONFDIR)
@
perl
-i
-pe
's/__DNSDOMAIN__/
$(DNSDOMAIN)
/g'
$(RCONFDIR)
/for_etc_hosts
#
#
Check if erase is wanted
@
if
[
"
$(ERASECONFIG)
"
-eq
"1"
]
;
then
\
cp
--remove-destination
_example/etc/apache
*
$(RCONFDIR)
;
\
perl
-i
-pe
's#__HANDLER__#
${HANDLERDIR}
/MyHandler.pm#
; \
s/__DNSDOMAIN__/
$(DNSDOMAIN)
/
g; \
s#__PORTALDIR__#
$(PORTAL
DIR)
/#g; \
s#__MANAGERDIR__#
$(MANAGER
DIR)
/#g; \
s#__TESTDIR__#
$(TESTDIR)
/#g; \
s#__DOCDIR__#
$(DOCDIR)
/#g;'
$(RCONFDIR)
/apache
*
;
\
cp
--remove-destination
_example/etc/for_etc_hosts
$(RCONFDIR)
;
\
perl
-i
-pe
's/__DNSDOMAIN__/
$(DNSDOMAIN)
/g'
$(RCONFDIR)
/for_etc_hosts
;
\
fi
@
echo
@
echo
"LemonLDAP::NG v
${VERSION}
is installed with these parameters:"
@
echo
" - System configuration:
${CONFDIR}
"
...
...
@@ -269,10 +270,12 @@ install_manager_site: install_conf_dir
rm
-rf
${RMANAGERDIR}
/imgs
;
\
ln
-s
$$
(
echo
${MANAGERDATADIR}
|
sed
-e
's/\/$$//'
)
${RMANAGERDIR}
/imgs
;
\
fi
# apply.conf install
@
mv
${RMANAGERDIR}
/apply.conf
$(RCONFDIR)
@
perl
-i
-pe
's/__DNSDOMAIN__/
$(DNSDOMAIN)
/g'
$(RCONFDIR)
/apply.conf
@
perl
-i
-pe
's#__APPLYCONFFILE__#
$(CONFDIR)
/apply.conf#'
${RMANAGERDIR}
/index.pl
# apply.conf install if erase configuration is wanted
@
if
[
"
$(ERASECONFIG)
"
-eq
"1"
]
;
then
\
mv
-f
${RMANAGERDIR}
/apply.conf
"
$(RCONFDIR)
"
;
\
perl
-i
-pe
's/__DNSDOMAIN__/
$(DNSDOMAIN)
/g'
$(RCONFDIR)
/apply.conf
;
\
perl
-i
-pe
's#__APPLYCONFFILE__#
$(CONFDIR)
/apply.conf#'
${RMANAGERDIR}
/index.pl
;
\
fi
# Sessions explorer install
@
if
[
"
${MANAGERDIR}
"
!=
"
$(SESSIONSEXPLORERDIR)
"
]
;
then
mv
-f
${RMANAGERDIR}
/sessions.pl
$(RSESSIONSEXPLORERDIR)
;
fi
@
if
[
"
${MANAGERDIR}
/images/"
!=
"
${SESSIONSEXPLORERDATADIR}
/"
]
;
then
\
...
...
@@ -305,8 +308,11 @@ install_portal_site: install_conf_dir
ln
-s
$(PORTALSKINSDIR)
/
$$
skin
$(RPORTALDIR)
/skins/
$$
skin
;
\
done
;
\
fi
@
cp
--remove-destination
_example/etc/apps-list
*
$(RCONFDIR)
@
perl
-i
-pe
's/__DNSDOMAIN__/
$(DNSDOMAIN)
/g'
$(RCONFDIR)
/apps-list.xml
# Applications list install if erase configuration is needed
@
if
[
"
$(ERASECONFIG)
"
-eq
"1"
]
;
then
\
cp
--remove-destination
_example/etc/apps-list
*
$(RCONFDIR)
;
\
perl
-i
-pe
's/__DNSDOMAIN__/
$(DNSDOMAIN)
/g'
$(RCONFDIR)
/apps-list.xml
;
\
fi
# L-A portal install
@
cp
-pR
--remove-destination
${SRCPORTALDIR}
/example/AuthLA/
*
$(RLASPPORTALDIR)
@
perl
-i
-pe
's#__DIR__#
$(LASPPORTALDIR)
/#g'
$(RLASPPORTALDIR)
/index.pl
...
...
@@ -355,8 +361,10 @@ install_doc_site:
install_conf_dir
:
install_sessions_dir
# Configuration files install
@
install
-v
-d
$(RCONFDIR)
$(RFILECONFIGDIR)
$(RTOOLSDIR)
@
cp
--remove-destination
$(SRCCOMMONDIR)
/storage.conf
$(RCONFDIR)
@
perl
-i
-pe
's#^dirName = .*#dirName =
$(FILECONFIGDIR)
#g'
$(RCONFDIR)
/storage.conf
@
if
[
"
$(ERASECONFIG)
"
-eq
"1"
]
;
then
\
cp
--remove-destination
$(SRCCOMMONDIR)
/storage.conf
$(RCONFDIR)
;
\
perl
-i
-pe
's#^dirName = .*#dirName =
$(FILECONFIGDIR)
#g'
$(RCONFDIR)
/storage.conf
;
\
fi
@
cp
_example/conf/lmConf-1
$(RFILECONFIGDIR)
@
perl
-000
-i
-pe
"s#^(globalStorageOptions
\\
n
\\
s+)'[^
\\
n]*?'
\$
$#
\$
${1}
\'\\\$
$data1
= {&39;Directory&39; => &39;
$(APACHESESSIONFILEDIR)
&39;,&39;LockDirectory&39; => &39;
$(APACHESESSIONFILELOCKDIR)
&39;};'#m"
$(RFILECONFIGDIR)
/lmConf-1
@
perl
-i
-pe
's/__DNSDOMAIN__/
$(DNSDOMAIN)
/g;\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment