Commit 57c84a00 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: add /etc/eepm/eepm.conf support

parent 912aa937
...@@ -96,6 +96,10 @@ pkg_names= ...@@ -96,6 +96,10 @@ pkg_names=
pkg_urls= pkg_urls=
quoted_args= quoted_args=
# load system wide config
[ -f /etc/eepm/eepm.conf ] && . /etc/eepm/eepm.conf
case $PROGNAME in case $PROGNAME in
epmi) epmi)
epm_cmd=install epm_cmd=install
......
...@@ -44,6 +44,16 @@ See detailed description here: http://wiki.etersoft.ru/EPM ...@@ -44,6 +44,16 @@ See detailed description here: http://wiki.etersoft.ru/EPM
#install -m 0755 packed/epm.sh %buildroot/%_datadir/%name/epm-packed.sh #install -m 0755 packed/epm.sh %buildroot/%_datadir/%name/epm-packed.sh
#install -m 0755 packed/serv.sh %buildroot/%_datadir/%name/serv-packed.sh #install -m 0755 packed/serv.sh %buildroot/%_datadir/%name/serv-packed.sh
mkdir -p %buildroot%_sysconfdir/eepm/
cat <<EOF >%buildroot%_sysconfdir/eepm/eepm.conf
# EEPM config (will insource in epm shell script)
# Not known variable yet
#verbose=--verbose
#quiet==--quiet
EOF
mkdir -p %buildroot%_sysconfdir/eepm/repack.d/
mkdir -p %buildroot%_sysconfdir/bash_completion.d/ mkdir -p %buildroot%_sysconfdir/bash_completion.d/
install -m 0644 bash_completion/serv %buildroot%_sysconfdir/bash_completion.d/serv install -m 0644 bash_completion/serv %buildroot%_sysconfdir/bash_completion.d/serv
ln -s serv %buildroot%_sysconfdir/bash_completion.d/cerv ln -s serv %buildroot%_sysconfdir/bash_completion.d/cerv
...@@ -59,6 +69,8 @@ rm -f %buildroot%_datadir/%name/tools_eget ...@@ -59,6 +69,8 @@ rm -f %buildroot%_datadir/%name/tools_eget
%files %files
%doc README TODO LICENSE %doc README TODO LICENSE
%dir %_sysconfdir/eepm/
%(config, noreplace) %_sysconfdir/eepm/eepm.conf
%_bindir/epm* %_bindir/epm*
%_bindir/eepm %_bindir/eepm
%_bindir/upm %_bindir/upm
......
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