On Thu, May 27, 2010 at 09:58:41PM +0200, Remy Bohmer wrote: > From: Bart vdr. Meulen <bartvdrmeu...@gmail.com> > > This adds the XFS progs package to PtxDist > > Signed-off-by: Bart vdr Meulen <bartvdrmeu...@gmail.com> > --- > rules/xfsprogs.in | 142 +++++++++++++++++++++++++++++++++++++++++++++ > rules/xfsprogs.make | 158 > +++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 300 insertions(+), 0 deletions(-) > create mode 100644 rules/xfsprogs.in > create mode 100644 rules/xfsprogs.make > > diff --git a/rules/xfsprogs.in b/rules/xfsprogs.in > new file mode 100644 > index 0000000..f5ba7da > --- /dev/null > +++ b/rules/xfsprogs.in > @@ -0,0 +1,142 @@ > +## SECTION=disk_and_file > + > +menuconfig XFSPROGS > + tristate > + prompt "xfsprogs" > + select E2FSPROGS_LIBUUID if XFSPROGS_INSTALL_MKXFS || > XFSPROGS_INSTALL_GROWFS || XFSPROGS_INSTALL_LOGPRINT || XFSPROGS_INSTALL_COPY > + help > + The xfsprogs package provides the filesystem utilities for use > + with the xfs filesystem. > + > +if XFSPROGS > + > +config XFSPROGS_INSTALL_MKXFS > + bool > + prompt "mkfs.xfs" > + help > + Install the mkfs.xfs program. > + > +config XFSPROGS_INSTALL_XFS_REPAIR > + bool > + prompt "xfs_repair" > + help > + Install the xfs_repair program. > + > +config XFSPROGS_INSTALL_GROWFS > + bool > + prompt "xfs_growfs" > + help > + Install the xfs_growfs program > + > +config XFSPROGS_INSTALL_INFO > + bool > + prompt "xfs_info" > + select XFSPROGS_INSTALL_GROWFS > + help > + Install the xfs_info program > + > +config XFSPROGS_INSTALL_DB > + bool > + prompt "xfs_db" > + help > + Install the xfs_db program > + > + > +config XFSPROGS_INSTALL_METADUMP > + bool > + prompt "xfs_metadump" > + select XFSPROGS_INSTALL_DB > + help > + Install the xfs_metadump program > + > +config XFSPROGS_INSTALL_NCHECK > + bool > + prompt "xfs_ncheck" > + select XFSPROGS_INSTALL_DB > + help > + Install the xfs_ncheck program > + > +config XFSPROGS_INSTALL_CHECK > + bool > + select XFSPROGS_INSTALL_DB > + prompt "xfs_check" > + help > + Install the xfs_check program > + > +config XFSPROGS_INSTALL_ADMIN > + bool > + prompt "xfs_admin" > + select XFSPROGS_INSTALL_DB > + help > + Install the xfs_admin program > + > +config XFSPROGS_INSTALL_IO > + bool > + prompt "xfs_io" > + help > + Install the xfs_io program > + > +config XFSPROGS_INSTALL_FREEZE > + bool > + prompt "xfs_freeze" > + select XFSPROGS_INSTALL_IO > + help > + Install the xfs_freeze program > + > +config XFSPROGS_INSTALL_MKFILE > + bool > + prompt "xfs_mkfile" > + select XFSPROGS_INSTALL_IO > + help > + Install the xfs_mkfile program > + > +config XFSPROGS_INSTALL_BMAP > + bool > + prompt "xfs_bmap" > + select XFSPROGS_INSTALL_IO > + help > + Install the xfs_bmap program > + > +config XFSPROGS_INSTALL_LOGPRINT > + bool > + prompt "xfs_logprint" > + help > + Install the xfs_logprint program > + > +config XFSPROGS_INSTALL_MDRESTORE > + bool > + prompt "xfs_mdrestore" > + help > + Install the xfs_mdrestore program > + > +config XFSPROGS_INSTALL_QUOTA > + bool > + prompt "xfs_quota" > + help > + Install the xfs_quota program > + > +config XFSPROGS_INSTALL_RTCP > + bool > + prompt "xfs_rtcp" > + help > + Install the xfs_rtcp program > + > +config XFSPROGS_INSTALL_COPY > + bool > + prompt "xfs_copy" > + help > + Install the xfs_copy program > + > +config XFSPROGS_INSTALL_ESTIMATE > + bool > + prompt "xfs_estimate" > + help > + Install the xfs_estimate program > + > +config XFSPROGS_INSTALL_FSR > + bool > + prompt "xfs_fsr" > + help > + Install the xfs_fsr program > + > +endif > diff --git a/rules/xfsprogs.make b/rules/xfsprogs.make > new file mode 100644 > index 0000000..f101599 > --- /dev/null > +++ b/rules/xfsprogs.make > @@ -0,0 +1,158 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2010 by Bart vdr. Meulen <bartvdrmeu...@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_XFSPROGS) += xfsprogs > + > +# > +# Paths and names > +# > +XFSPROGS_VERSION := 3.0.5 > +XFSPROGS := xfsprogs-$(XFSPROGS_VERSION) > +XFSPROGS_SUFFIX := tar.gz > +XFSPROGS_URL := > ftp://oss.sgi.com/projects/xfs/cmd_tars-oct_09/$(XFSPROGS).$(XFSPROGS_SUFFIX) > +XFSPROGS_SOURCE := $(SRCDIR)/$(XFSPROGS).$(XFSPROGS_SUFFIX) > +XFSPROGS_DIR := $(BUILDDIR)/$(XFSPROGS) > +XFSPROGS_LICENSE := GPLv2, LGPLv2.1 > + > +# > ---------------------------------------------------------------------------- > +# Get > +# > ---------------------------------------------------------------------------- > + > +$(XFSPROGS_SOURCE): > + @$(call targetinfo) > + @$(call get, XFSPROGS) > + > +# > +# autoconf > +# > +XFSPROGS_CONF_TOOL := autoconf > +XFSPROGS_AUTOCONF := $(CROSS_AUTOCONF_USR) > + > +# > ---------------------------------------------------------------------------- > +# Compile > +# > ---------------------------------------------------------------------------- > +XFSPROGS_CPPFLAGS := $(strip $(PTXCONF_TARGET_EXTRA_CPPFLAGS) > $(PTXDIST_CROSS_CPPFLAGS)) > +XFSPROGS_MAKE_OPT := GCCFLAGS="$(XFSPROGS_CPPFLAGS)" > + > +XFSPROGS_INSTALL_OPT := \ > + prefix=${XFSPROGS_PKGDIR}/usr \ > + PKG_ROOT_SBIN_DIR=${XFSPROGS_PKGDIR}/sbin \ > + PKG_ROOT_LIB_DIR=${XFSPROGS_PKGDIR}/lib \ > + install > + > +# > ---------------------------------------------------------------------------- > +# Target-Install > +# > ---------------------------------------------------------------------------- > + > +$(STATEDIR)/xfsprogs.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, xfsprogs) > + @$(call install_fixup, xfsprogs,PACKAGE,xfsprogs) > + @$(call install_fixup, xfsprogs,PRIORITY,optional) > + @$(call install_fixup, xfsprogs,VERSION,$(XFSPROGS_VERSION)) > + @$(call install_fixup, xfsprogs,SECTION,base) > + @$(call install_fixup, xfsprogs,AUTHOR,"Bart vdr. Meulen > <bartvdrmeu...@gmail.com>") > + @$(call install_fixup, xfsprogs,DEPENDS,) > + @$(call install_fixup, xfsprogs,DESCRIPTION,missing) > + > + > +ifdef PTXCONF_XFSPROGS_INSTALL_MKXFS > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /sbin/mkfs.xfs ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_XFS_REPAIR > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /sbin/xfs_repair ) > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /sbin/fsck.xfs ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_GROWFS > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_growfs ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_INFO > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_info ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_DB > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_db ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_METADUMP > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_metadump ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_CHECK > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_check ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_NCHECK > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_ncheck ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_ADMIN > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_admin ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_IO > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_io ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_FREEZE > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_freeze ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_MKFILE > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_mkfile ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_BMAP > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_bmap ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_LOGPRINT > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_logprint ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_MDRESTORE > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_mdrestore ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_QUOTA > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_quota ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_RTCP > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_rtcp ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_COPY > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_copy ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_ESTIMATE > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_estimate ) > +endif > + > +ifdef PTXCONF_XFSPROGS_INSTALL_FSR > + @$(call install_copy, xfsprogs, 0, 0, 0755, -, /usr/sbin/xfs_fsr ) > + @$(call install_copy, xfsprogs, 0, 0, 0644, -, /lib/libhandle.so.1.0.3 ) > + @$(call install_link, xfsprogs, /lib/libhandle.so.1.0.3, libhandle.so.1 > )
@$(call install_link, xfsprogs, libhandle.so.1.0.3, /lib/libhandle.so.1 ) > +endif > + > + @$(call install_finish, xfsprogs) > + > + @$(call touch) > + > + > +# vim: syntax=make > -- > 1.7.0.4 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de