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
100
101
102
103
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2002-2008 by Pengutronix e.K., Hildesheim, Germany
#
# 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_E2FSPROGS) += e2fsprogs
#
# Paths and names
#
E2FSPROGS_VERSION := 1.40.8
E2FSPROGS := e2fsprogs-$(E2FSPROGS_VERSION)
E2FSPROGS_SUFFIX := tar.gz
E2FSPROGS_URL := $(PTXCONF_SETUP_SFMIRROR)/e2fsprogs/$(E2FSPROGS).$(E2FSPROGS_SUFFIX)
E2FSPROGS_SOURCE := $(SRCDIR)/$(E2FSPROGS).$(E2FSPROGS_SUFFIX)
E2FSPROGS_DIR := $(BUILDDIR)/$(E2FSPROGS)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
$(E2FSPROGS_SOURCE):
@$(call targetinfo)
@$(call get, E2FSPROGS)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
e2fsprogs_prepare: $(STATEDIR)/e2fsprogs.prepare
E2FSPROGS_PATH := PATH=$(CROSS_PATH)
E2FSPROGS_ENV := $(CROSS_ENV)
#
# autoconf
#
E2FSPROGS_AUTOCONF := \
$(CROSS_AUTOCONF_USR) \
--with-root-prefix="" \
--disable-nls
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/e2fsprogs.install:
@$(call targetinfo)
@$(call install, E2FSPROGS,,,install-libs)
@$(call touch)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/e2fsprogs.targetinstall:
@$(call targetinfo)
@$(call install_init, e2fsprogs)
@$(call install_fixup,e2fsprogs,PACKAGE,e2fsprogs)
@$(call install_fixup,e2fsprogs,PRIORITY,optional)
@$(call install_fixup,e2fsprogs,VERSION,$(E2FSPROGS_VERSION))
@$(call install_fixup,e2fsprogs,SECTION,base)
@$(call install_fixup,e2fsprogs,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
@$(call install_fixup,e2fsprogs,DEPENDS,)
@$(call install_fixup,e2fsprogs,DESCRIPTION,missing)
ifdef PTXCONF_E2FSPROGS_MKFS
@$(call install_copy, e2fsprogs, 0, 0, 0755, $(E2FSPROGS_DIR)/misc/mke2fs, /sbin/mke2fs)
endif
ifdef PTXCONF_E2FSPROGS_E2FSCK
@$(call install_copy, e2fsprogs, 0, 0, 0755, $(E2FSPROGS_DIR)/e2fsck/e2fsck, /sbin/e2fsck)
endif
ifdef PTXCONF_E2FSPROGS_TUNE2FS
@$(call install_copy, e2fsprogs, 0, 0, 0755, $(E2FSPROGS_DIR)/misc/tune2fs, /sbin/tune2fs)
@$(call install_link, e2fsprogs, /sbin/tune2fs, /sbin/findfs)
@$(call install_link, e2fsprogs, /sbin/tune2fs, /sbin/e2label)
endif
@$(call install_finish,e2fsprogs)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
e2fsprogs_clean:
rm -rf $(STATEDIR)/e2fsprogs.*
rm -rf $(IMAGEDIR)/e2fsprogs_*
rm -rf $(E2FSPROGS_DIR)
# vim: syntax=make
|