Commit 6c28a37e authored by Vitaly Lipatov's avatar Vitaly Lipatov

move included script to /usr/share/eepm

parent c1c0183e
pkgdatadir=$(datadir)/eterbuild pkgdatadir=$(datadir)/eepm
# due using %makeinstallstd in spec
instpkgdatadir=/usr/share/eepm
install: install:
mkdir -p $(DESTDIR)$(bindir) mkdir -p $(DESTDIR)$(bindir)/
install -m 755 bin/* $(DESTDIR)$(bindir) mkdir -p $(DESTDIR)$(pkgdatadir)/
install -m 755 `ls -1 bin/* | grep -v "-"` $(DESTDIR)$(bindir)/
install -m 755 `ls -1 bin/* | grep "-"` $(DESTDIR)$(pkgdatadir)/
sed -e "s|SHAREDIR=.*|SHAREDIR=$(instpkgdatadir)|g" <bin/epm >$(DESTDIR)$(bindir)/epm
sed -e "s|SHAREDIR=.*|SHAREDIR=$(instpkgdatadir)|g" <bin/serv >$(DESTDIR)$(bindir)/serv
...@@ -19,13 +19,17 @@ ...@@ -19,13 +19,17 @@
# #
PROGDIR=$(dirname $0) PROGDIR=$(dirname $0)
# will replaced to /usr/share/eepm during install
SHAREDIR=$(dirname $0)
load_helper() load_helper()
{ {
[ -r "$PROGDIR/$1" ] || fatal "Have no $PROGDIR/$1 helper file" local CMD="$SHAREDIR/$1"
. $PROGDIR/$1 [ -r "$CMD" ] || fatal "Have no $CMD helper file"
. $CMD
} }
load_helper epm-sh-functions load_helper epm-sh-functions
#PATH=$PATH:/sbin:/usr/sbin #PATH=$PATH:/sbin:/usr/sbin
......
...@@ -19,11 +19,14 @@ ...@@ -19,11 +19,14 @@
# #
PROGDIR=$(dirname $0) PROGDIR=$(dirname $0)
# will replaced to /usr/share/eepm during install
SHAREDIR=$(dirname $0)
load_helper() load_helper()
{ {
[ -r "$PROGDIR/$1" ] || fatal "Have no $PROGDIR/$1 helper file" local CMD="$SHAREDIR/$1"
. $PROGDIR/$1 [ -r "$CMD" ] || fatal "Have no $CMD helper file"
. $CMD
} }
load_helper epm-sh-functions load_helper epm-sh-functions
......
...@@ -40,13 +40,17 @@ with various distros. ...@@ -40,13 +40,17 @@ with various distros.
%install %install
# install to datadir and so on # install to datadir and so on
%makeinstall %makeinstall
./pack_in_onefile.sh
install -m 0755 *packed.sh %buildroot/%_datadir/%name/
%files %files
%doc README TODO %doc README TODO
%_bindir/epm* %_bindir/epm*
%_bindir/eepm %_bindir/eepm
%_bindir/upm %_bindir/upm
%_bindir/serv
%_bindir/distr_info %_bindir/distr_info
%_datadir/%name/
%changelog %changelog
* Sat Dec 08 2012 Vitaly Lipatov <lav@altlinux.ru> 1.0.7-alt1 * Sat Dec 08 2012 Vitaly Lipatov <lav@altlinux.ru> 1.0.7-alt1
......
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