]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - quota/quota.nm
Merge remote-tracking branch 'stevee/ppp-update'
[people/ms/ipfire-3.x.git] / quota / quota.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = quota
7 version = 4.01
8 release = 1
9
10 groups = System/Base
11 url = http://sourceforge.net/projects/linuxquota/
12 license = BSD and GPLv2+
13 summary = System administration tools for monitoring users' disk usage
14
15 description
16 The quota package contains system administration tools for monitoring
17 and limiting user and or group disk usage per file system.
18 end
19
20 source_dl = http://downloads.sourceforge.net/linuxquota/
21
22 build
23 requires
24 dbus-devel
25 e2fsprogs-devel
26 gettext
27 glibc-headers >= 2.17-2
28 libnl-devel
29 openldap-devel
30 systemd-units
31 end
32
33 DIR_APP = %{DIR_SRC}/quota-tools
34
35 configure_options += \
36 --enable-ext2direct \
37 --enable-ldapmail \
38 --enable-netlink \
39 --enable-rpcsetquota \
40 --disable-strip-binaries
41
42 make_install_targets += ROOTDIR=%{BUILDROOT}
43
44 install_cmds
45 mkdir -pv %{BUILDROOT}%{sysconfdir}
46 install -m 644 warnquota.conf %{BUILDROOT}%{sysconfdir}
47
48 # Remove XFS stuff.
49 rm -vf %{BUILDROOT}{%{mandir},%{sbindir}}/{quot,xqmstats}*
50 end
51 end
52
53 packages
54 package %{name}
55
56 package %{name}-nld
57 summary = The quota_nld daemon.
58
59 description
60 Daemon that listens on netlink socket and processes received quota warnings.
61 The daemon supports forwarding warning messages to the system D-Bus
62 (so that desktop manager can display a dialog) and writing them to the
63 terminal user has last accessed.
64 end
65
66 requires
67 quota = %{thisver}
68 end
69
70 files
71 %{unitdir}/quota_nld.service
72 %{sbindir}/quota_nld
73 %{mandir}/man8/quota_nld.8*
74 end
75
76 script postin
77 systemctl daemon-reload >/dev/null 2>&1 || :
78 end
79
80 script postup
81 systemctl daemon-reload >/dev/null 2>&1 || :
82 systemctl try-restart quota_nld.service >/dev/null 2>&1 || :
83 end
84
85 script preun
86 systemctl --no-reload disable quota_nld.service >/dev/null 2>&1 || :
87 systemctl stop quota_nld.service >/dev/null 2>&1 || :
88 end
89
90 script postun
91 systemctl daemon-reload >/dev/null 2>&1 || :
92 end
93 end
94
95 package %{name}-warnquota
96 summary = Send e-mail to users over quota.
97 description
98 Utility that checks disk quota for each local file system and mails a warning
99 message to those users who have reached their soft limit. It is typically run
100 via cron(8).
101 end
102
103 requires
104 quota = %{thisver}
105 end
106
107 configfiles
108 %{sysconfdir}/quotagrpadmins
109 %{sysconfdir}/quotatab
110 %{sysconfdir}/warnquota.conf
111 end
112
113 files
114 %{configfiles}
115 %{sbindir}/warnquota
116 %{mandir}/man8/warnquota.8*
117 end
118 end
119
120 package %{name}-devel
121 template DEVEL
122
123 # Some header files have previously been
124 # shipped with glibc-headers.
125 conflicts
126 glibc-headers < 2.17-2
127 end
128 end
129
130 package %{name}-debuginfo
131 template DEBUGINFO
132 end
133 end