Search
j0ke.net Open Build Service
>
Projects
>
server:messaging
>
sms-server-tools3
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 17
[-]
[+]
Changed
smstools.spec
@@ -2,7 +2,7 @@ %define smsname %{name}3 Summary: The SMS Server Tools send and receive short messages through GSM Version: 3.1.14 -Release: 1 +Release: 2 Source0: %{smsname}-%{version}.tar.bz2 Source1: %{name}.logrotate.d Source2: %{name}.suse.init @@ -12,6 +12,7 @@ Group: Applications/Communications Url: http://smstools3.kekekasvi.com/ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires(pre): pwdutils Requires: logrotate BuildRequires: mm-devel @@ -61,6 +62,14 @@ cd %{buildroot}/%{_sbindir} ln -s ../../%{_sysconfdir}/init.d/smstools rcsmstools rm -f %{buildroot}/etc/init.d/sms3 +for DIR in checked failed incoming outgoing sent ; do + mkdir -p %{buildroot}/var/spool/sms/${DIR} +done + +%pre +getent group smsd >/dev/null || groupadd -r smsd +getent passwd smsd >/dev/null || useradd -r -g smsd -d /var/spool/sms -s /sbin/nologin -c "SMSTools" smsd +exit 0 %preun %stop_on_removal @@ -80,6 +89,13 @@ %{_bindir}/sms2unicode %{_bindir}/unicode2sms %{_sbindir}/rcsmstools +%defattr(-,smsd,smsd) +%dir /var/spool/sms +%dir /var/spool/sms/checked +%dir /var/spool/sms/failed +%dir /var/spool/sms/incoming +%dir /var/spool/sms/outgoing +%dir /var/spool/sms/sent %defattr(0644,root,root) %config(noreplace) %{_sysconfdir}/smsd.conf %config %{_sysconfdir}/logrotate.d/smstools