[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RPM Installation



Read the spec file a little further:

cat << TAK > rpm-ledgersmb-httpd.conf
Alias /ledgersmb/doc/LedgerSMB-manual.pdf
%{_docdir}/%{name}-%{version}/LedgerSMB-manual.pdf
<Files %{_docdir}/%{name}-%{version}/LedgerSMB-manual.pdf>
</Files>

TAK

perl -p -e "s,/some/path/to/ledgersmb,%{_datadir}/%{name},g"
ledgersmb-httpd.conf >> rpm-ledgersmb-httpd.conf

then later:

install -m 644 rpm-ledgersmb-httpd.conf \
  $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/ledgersmb.conf


Does that make more sense?
Best Wishes,
Chris Travers