Version 0.3.0 from FTP
[asterisk/asterisk.git] / redhat / asterisk.spec
1 Summary: Asterisk PBX
2 Name: asterisk
3 Distribution: RedHat
4 Version: CVS
5 Release: 1
6 Copyright: Linux Support Services, inc.
7 Group: Utilities/System
8 Vendor: Linux Support Services, inc.
9 Packager: Robert Vojta <vojta@ipex.cz>
10 BuildRoot: /tmp/asterisk
11
12 %description
13 Asterisk is an Open Source PBX and telephony development platform that
14 can both replace a conventional PBX and act as a platform for developing
15 custom telephony applications for delivering dynamic content over a
16 telephone similarly to how one can deliver dynamic content through a
17 web browser using CGI and a web server.
18
19 Asterisk talks to a variety of telephony hardware including BRI, PRI, 
20 POTS, and IP telephony clients using the Inter-Asterisk eXchange
21 protocol (e.g. gnophone or miniphone).  For more information and a
22 current list of supported hardware, see www.asteriskpbx.com.
23
24 %post
25 ln -sf /var/spool/asterisk/vm /var/lib/asterisk/sounds/vm
26
27 %files
28 #
29 # Configuration files
30 #
31 %attr(0755,root,root) %dir    /etc/asterisk
32 %attr(0640,root,root) %config /etc/asterisk/*.conf
33 %attr(0640,root,root) %config /etc/asterisk/*.adsi
34
35 #
36 # RedHat specific init script file
37 #
38 %attr(0755,root,root)       /etc/rc.d/init.d/asterisk
39
40 #
41 # Include files
42 #
43 %attr(0755,root,root) %dir /usr/include/asterisk
44 %attr(0644,root,root)      /usr/include/asterisk/*.h
45
46 #
47 # Modules
48 #
49 %attr(0755,root,root) %dir /usr/lib/asterisk
50 %attr(0755,root,root) %dir /usr/lib/asterisk/modules
51 %attr(0755,root,root)      /usr/lib/asterisk/modules/*.so
52
53 #
54 # Asterisk
55 #
56 %attr(0755,root,root)      /usr/sbin/asterisk
57 %attr(0755,root,root)      /usr/sbin/safe_asterisk
58 %attr(0755,root,root)      /usr/sbin/astgenkey
59
60 #
61 # Sound files
62 #
63 %attr(0755,root,root) %dir /var/lib/asterisk
64 %attr(0755,root,root) %dir /var/lib/asterisk/sounds
65 %attr(0644,root,root)      /var/lib/asterisk/sounds/*.gsm
66 %attr(0755,root,root) %dir /var/lib/asterisk/sounds/digits
67 %attr(0644,root,root)      /var/lib/asterisk/sounds/digits/*.gsm
68 %attr(0755,root,root) %dir /var/lib/asterisk/images
69 %attr(0644,root,root)      /var/lib/asterisk/images/*
70 %attr(0755,root,root) %dir /var/lib/asterisk/keys
71 %attr(0644,root,root)      /var/lib/asterisk/keys/*
72 %attr(0755,root,root) %dir /var/lib/asterisk/agi-bin
73 %attr(0755,root,root) %dir /var/lib/asterisk/agi-bin/*
74
75 #
76 # Example voicemail files
77 #
78 %attr(0755,root,root) %dir /var/spool/asterisk
79 %attr(0755,root,root) %dir /var/spool/asterisk/vm
80 %attr(0755,root,root) %dir /var/spool/asterisk/vm/1234
81 %attr(0755,root,root) %dir /var/spool/asterisk/vm/1234/INBOX
82 %attr(0644,root,root)      /var/spool/asterisk/vm/1234/*.gsm