summaryrefslogtreecommitdiffstats
path: root/rules/quota-tools.make
blob: 1b5b9699ed5de5a9e948bd6da6eaa7345d81f6e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# -*-makefile-*-
#
# Copyright (C) 2010 by Bart vdr. Meulen <bartvdrmeulen@gmail.com>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_QUOTA_TOOLS) += quota-tools

#
# Paths and names
#
QUOTA_TOOLS_VERSION	:= 3.17
QUOTA_TOOLS_MD5		:= cb3e98a039c0cf98e7c1ad4b50a5bda7
QUOTA_TOOLS		:= quota-tools
QUOTA_TOOLS_SUFFIX	:= tar.gz
QUOTA_TOOLS_PACKAGE	:= quota-$(QUOTA_TOOLS_VERSION).${QUOTA_TOOLS_SUFFIX}
QUOTA_TOOLS_URL		:= $(call ptx/mirror, SF, linuxquota/$(QUOTA_TOOLS_PACKAGE))
QUOTA_TOOLS_SOURCE	:= $(SRCDIR)/$(QUOTA_TOOLS_PACKAGE)
QUOTA_TOOLS_DIR		:= $(BUILDDIR)/$(QUOTA_TOOLS)
QUOTA_TOOLS_LICENSE	:= GPL-2.0

#
# autoconf
#
QUOTA_TOOLS_CONF_TOOL	:= autoconf

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
QUOTA_TOOLS_MAKE_ENV	 := $(CROSS_ENV)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
QUOTA_TOOLS_INSTALL_OPT := ROOTDIR=$(QUOTA_TOOLS_PKGDIR) install

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/quota-tools.targetinstall:
	@$(call targetinfo)

	@$(call install_init,  quota-tools)
	@$(call install_fixup, quota-tools,PRIORITY,optional)
	@$(call install_fixup, quota-tools,SECTION,base)
	@$(call install_fixup, quota-tools,AUTHOR,"Bart vdr. Meulen <bartvdrmeulen@gmail.com>")
	@$(call install_fixup, quota-tools,DESCRIPTION,missing)

ifdef PTXCONF_QUOTA_TOOLS_QUOTACHECK
	@$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/quotacheck)
endif
ifdef PTXCONF_QUOTA_TOOLS_QUOTAONOFF
	@$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/quotaon)
	@$(call install_link, quota-tools, quotaon, /usr/sbin/quotaoff)
endif
ifdef PTXCONF_QUOTA_TOOLS_SETQUOTA
	@$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/setquota)
endif
ifdef PTXCONF_QUOTA_TOOLS_QUOTA
	@$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/bin/quota)
endif
ifdef PTXCONF_QUOTA_TOOLS_REPQUOTA
	@$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/repquota)
endif
ifdef PTXCONF_QUOTA_TOOLS_EDQUOTA
	@$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/edquota)
endif
ifdef PTXCONF_QUOTA_TOOLS_QUOTASTATS
	@$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/quotastats)
endif
ifdef PTXCONF_QUOTA_TOOLS_QUOT
	@$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/quot)
endif
ifdef PTXCONF_QUOTA_TOOLS_CONVERTQUOTA
	@$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/convertquota)
endif
ifdef PTXCONF_QUOTA_TOOLS_WARNQUOTA
	@$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/warnquota)
	@$(call install_copy, quota-tools, 0, 0, 0644, -, /etc/warnquota.conf)
	@$(call install_copy, quota-tools, 0, 0, 0644, -, /etc/quotatab)
	@$(call install_copy, quota-tools, 0, 0, 0644, -, /etc/quotagrpadmins)
endif
ifdef PTXCONF_QUOTA_TOOLS_RQUOTAD
	@$(call install_copy, quota-tools, 0, 0, 0755, -, /usr/sbin/rpc.rquotad)
endif

	@$(call install_finish, quota-tools)

	@$(call touch)

# vim: syntax=make