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