Guest User

Untitled

a guest
Sep 24th, 2012
347
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Summary: syslog-ng.conf and Logrotate installation package
  2. Name: syslogng-conf
  3. Version: 1
  4. Release: 0
  5. Source0: syslogng-conf.1.tar.gz
  6. License: GPL
  7. Group: system
  8. BuildArch: noarch
  9. BuildRoot: %{_tmppath}/%{name}-buildroot
  10. %description
  11. Syslog-ng.conf and logrotate installation
  12. %prep
  13. %setup -q
  14. %build
  15. %install
  16. install -m 0755 -d $RPM_BUILD_ROOT/home/www/test-syslog/
  17. install -m 0644 syslog-ng.conf $RPM_BUILD_ROOT/home/www/test-syslog/syslog-ng.conf
  18. install -m 0644 syslog-ng $RPM_BUILD_ROOT/home/www/test-syslog/syslog-ng
  19. %clean
  20. rm -rf $RPM_BUILD_ROOT
  21. %post
  22. echo "Enter hostname"
  23. read h
  24. sed -ie "s/\<myvalue\>/$h/g" /home/www/test-syslog/syslog-ng.conf
  25. %files
  26. %dir /home/subin/test-syslog
  27. /home/www/test-syslog/syslog-ng.conf
  28. /home/www/test-syslog/syslog-ng
RAW Paste Data