1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
Name: autorepo-altnode-config Version: 0.06 Release: alt1 BuildArch: noarch Packager: Igor Yu. Vlasenko <viy@altlinux.org> Summary: common configs for an automated packaging node Group: System/Configuration/Other License: GPL2+ #Url: Source: %name-%version.tar Requires(pre): postfix rsync-server anonftp vsftpd %description %summary %package nginx Group: System/Configuration/Other Summary: generic nginx config for an automated packaging node Requires(pre): nginx %description nginx %summary nginx %prep %setup %build %install mkdir -p $RPM_BUILD_ROOT%_sysconfdir/autorepo/apt install -m 644 apt.conf.* sources.list.* $RPM_BUILD_ROOT%_sysconfdir/autorepo/apt/ install -D -m 644 nginx/autoports.conf %buildroot%_sysconfdir/nginx/sites-enabled.d/autorepo.conf %post # postfix if ! grep '^relayhost' /etc/postfix/main.cf; then cat >> /etc/postfix/main.cf <<EOF # altnode auto configuration relayhost = [192.168.1.7] EOF service postfix restart ||: fi # rsync-server if ! grep '^\[pub\]' /etc/rsyncd.conf; then cat >> /etc/rsyncd.conf <<EOF # altnode auto configuration [pub] path=/var/ftp/pub use chroot read only list EOF chkconfig rsync on fi # ftpd chkconfig vsftpd on ||: if grep 'only_from = 127.0.0.1' /etc/xinetd.conf; then sed -i -e 's,only_from = .*,only_from = 0.0.0.0,' /etc/xinetd.conf fi service xinetd restart %post nginx # nginx service nginx restart ||: %files %_sysconfdir/autorepo/apt/apt.conf.* %_sysconfdir/autorepo/apt/sources.list.* %files nginx %_sysconfdir/nginx/sites-enabled.d/autorepo.conf %changelog * Wed Nov 07 2012 Igor Vlasenko <viy@altlinux.ru> 0.06-alt1 - added debuginfo for t6 and p6 * Mon Sep 24 2012 Igor Vlasenko <viy@altlinux.ru> 0.05-alt1 - support for p6 and 5.1 * Wed Jun 06 2012 Igor Vlasenko <viy@altlinux.ru> 0.04-alt1 - added initial xinetd configuration * Wed Jun 06 2012 Igor Vlasenko <viy@altlinux.ru> 0.03-alt1 - updated initial postfix configuration * Tue Jun 05 2012 Igor Vlasenko <viy@altlinux.ru> 0.02-alt1 - added %%post for initial service configuration * Sat May 19 2012 Igor Vlasenko <viy@altlinux.ru> 0.01-alt1 - First build for Sisyphus.