Test
[diplomippbx.git] / asterisk-at-base-configs.spec
blob941a0ff734e159ec582cade303f98e7bf59a7d00
1 Name: asterisk-at-base-configs
2 Summary: AT Asterisk config files
3 Version: 0.1
4 Release: alt10
5 License: GPL
6 Group: System/Servers
8 BuildArch: noarch
10 Packager: Vitaliy Kolodinsky <kolodinsky@gmail.com>
12 Source: %name-%version.tar.gz
14 Requires(pre): asterisk-base
16 %description
17 %summary
19 %prep
20 %setup -c
21 %build
22 %install
23 mkdir -p %buildroot%_sysconfdir/asterisk
24 ls -l
25 for s in *.*; do
26 install -D -m 750 "$s" %buildroot%_sysconfdir/asterisk
27 done
29 %post
30 cd %_sysconfdir/asterisk/
31 /bin/tar -zxf %_sysconfdir/asterisk/configs.tar.gz
32 /bin/chown _asterisk:pbxadmin %_sysconfdir/asterisk/*.*
33 /bin/chmod 0460 %_sysconfdir/asterisk/*.*
34 %files
35 %dir %attr(2770,_asterisk,pbxadmin) %_sysconfdir/asterisk/
36 %config %attr(0460,_asterisk,pbxadmin) %_sysconfdir/asterisk/*.*