fix sa_lib_dir setting
This commit is contained in:
parent
4f3fd9d6df
commit
99ee4906f9
@ -34,9 +34,9 @@ activity.
|
|||||||
# FIXME: I need to fix the upstream Makefile to use LIBDIR et al. properly and
|
# FIXME: I need to fix the upstream Makefile to use LIBDIR et al. properly and
|
||||||
# send the upstream maintainer a patch.
|
# send the upstream maintainer a patch.
|
||||||
# add DOCDIR to the configure part
|
# add DOCDIR to the configure part
|
||||||
./configure --disable-man-group --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir}
|
./configure --disable-man-group --prefix=%{_prefix} --mandir=%{_mandir} sa_lib_dir=%{_libdir}/sa
|
||||||
CFLAGS="$RPM_OPT_FLAGS -DSADC_PATH=\\\"%{_libdir}/sa/sadc\\\""
|
CFLAGS="$RPM_OPT_FLAGS -DSADC_PATH=\\\"%{_libdir}/sa/sadc\\\""
|
||||||
make CFLAGS="$CFLAGS" LFLAGS="" DOC_DIR=%{_docdir} LIB_DIR=%{_libdir}
|
make CFLAGS="$CFLAGS" LFLAGS="" DOC_DIR=%{_docdir}
|
||||||
|
|
||||||
# Thou shalt not write to source files or patches
|
# Thou shalt not write to source files or patches
|
||||||
rm -f sysstat.crond
|
rm -f sysstat.crond
|
||||||
@ -49,7 +49,7 @@ cat %{SOURCE1} > sysstat.crond
|
|||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
make install IGNORE_MAN_GROUP=y DOC_DIR=%{_docdir} INIT_DIR=%{_initrddir} LIB_DIR=%{_libdir}
|
make install IGNORE_MAN_GROUP=y DOC_DIR=%{_docdir} INIT_DIR=%{_initrddir}
|
||||||
|
|
||||||
mkdir -p %{buildroot}/etc/{cron.daily,cron.d,sysconfig}
|
mkdir -p %{buildroot}/etc/{cron.daily,cron.d,sysconfig}
|
||||||
install -m 0644 sysstat.crond %{buildroot}/etc/cron.d/sysstat
|
install -m 0644 sysstat.crond %{buildroot}/etc/cron.d/sysstat
|
||||||
|
Loading…
Reference in New Issue
Block a user