|
|
|
@ -32,8 +32,8 @@ Packager: The OpenPKG Project
|
|
|
|
|
Distribution: OpenPKG [PLUS] |
|
|
|
|
Group: System |
|
|
|
|
License: GPL |
|
|
|
|
Version: 2.1.0 |
|
|
|
|
Release: 20030611 |
|
|
|
|
Version: 2.2.0 |
|
|
|
|
Release: 20030804 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://www.adel.nursat.kz/apg/download/apg-%{version}.tar.gz |
|
|
|
@ -57,6 +57,7 @@ AutoReqProv: no
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q |
|
|
|
|
chmod 755 . */. */*/. */*/*/. |
|
|
|
|
%patch -p0 |
|
|
|
|
%{l_shtool} subst -s -e 's/^#.*include.*syslog\.h.*$//' apg.c |
|
|
|
|
%{l_shtool} subst -s -e 's/syslog.*LOG_.*;\(.*\)$/;\1/' apg.c errors.c |
|
|
|
@ -73,26 +74,16 @@ AutoReqProv: no
|
|
|
|
|
*-solaris* ) libs="-lnsl -lsocket" ;; |
|
|
|
|
*-irix* ) libs="-lnsl -lsocket" ; defs="-DNEED_SOCKLEN_T";; |
|
|
|
|
esac |
|
|
|
|
%{l_make} %{l_mflags -O} \ |
|
|
|
|
%{l_make} %{l_mflags -O} standalone \ |
|
|
|
|
CC="%{l_cc}" \ |
|
|
|
|
CFLAGS="%{l_cflags -O} $defs" \ |
|
|
|
|
CS_LIBS="$libs" |
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/sbin \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/man/man1 \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/man/man8 |
|
|
|
|
%{l_shtool} install -c -s -m 755 \ |
|
|
|
|
apg apgbfm $RPM_BUILD_ROOT%{l_prefix}/bin/ |
|
|
|
|
%{l_shtool} install -c -s -m 755 \ |
|
|
|
|
apgd $RPM_BUILD_ROOT%{l_prefix}/sbin/ |
|
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
|
doc/man/apg.1 doc/man/apgbfm.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ |
|
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
|
doc/man/apgd.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/ |
|
|
|
|
CHOWNPROG=true \ |
|
|
|
|
CHGRPPROG=true \ |
|
|
|
|
%{l_make} ${l_mflags} install INSTALL_PREFIX=$RPM_BUILD_ROOT%{l_prefix} |
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
|
|
|
|
|
|
|
|
|
%files -f files |
|
|
|
|