2003-03-10 18:58:07 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# util-linux
|
|
|
|
#
|
|
|
|
#############################################################
|
2004-03-10 09:11:05 +01:00
|
|
|
UTIL-LINUX_SOURCE:=util-linux_2.12.orig.tar.gz
|
|
|
|
UTIL-LINUX_SITE:=http://ftp.debian.org/debian/pool/main/u/util-linux/
|
2004-09-03 02:49:43 +02:00
|
|
|
UTIL-LINUX_PATCH:=util-linux_2.12-7.diff.gz
|
2003-03-10 18:58:07 +01:00
|
|
|
UTIL-LINUX_CAT:=zcat
|
2004-03-10 09:11:05 +01:00
|
|
|
UTIL-LINUX_DIR:=$(BUILD_DIR)/util-linux-2.12
|
2003-03-10 18:58:07 +01:00
|
|
|
UTIL-LINUX_BINARY:=$(UTIL-LINUX_DIR)/misc-utils/mcookie
|
|
|
|
UTIL-LINUX_TARGET_BINARY:=$(TARGET_DIR)/usr/bin/mcookie
|
|
|
|
|
|
|
|
$(DL_DIR)/$(UTIL-LINUX_SOURCE):
|
2004-03-10 09:11:05 +01:00
|
|
|
$(WGET) -P $(DL_DIR) $(UTIL-LINUX_SITE)/$(UTIL-LINUX_SOURCE)
|
2003-03-10 18:58:07 +01:00
|
|
|
|
2004-03-10 09:11:05 +01:00
|
|
|
$(DL_DIR)/$(UTIL-LINUX_PATCH):
|
|
|
|
$(WGET) -P $(DL_DIR) $(UTIL-LINUX_SITE)/$(UTIL-LINUX_PATCH)
|
|
|
|
|
|
|
|
$(UTIL-LINUX_DIR)/.unpacked: $(DL_DIR)/$(UTIL-LINUX_SOURCE) $(DL_DIR)/$(UTIL-LINUX_PATCH)
|
2003-03-10 18:58:07 +01:00
|
|
|
$(UTIL-LINUX_CAT) $(DL_DIR)/$(UTIL-LINUX_SOURCE) | tar -C $(BUILD_DIR) -xvf -
|
2004-03-10 09:11:05 +01:00
|
|
|
$(UTIL-LINUX_CAT) $(DL_DIR)/$(UTIL-LINUX_PATCH) | patch -p1 -d $(UTIL-LINUX_DIR)
|
2003-12-03 23:49:02 +01:00
|
|
|
cat $(SOURCE_DIR)/util-linux.patch | patch -p1 -d $(UTIL-LINUX_DIR)
|
2003-03-10 18:58:07 +01:00
|
|
|
touch $(UTIL-LINUX_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(UTIL-LINUX_DIR)/.configured: $(UTIL-LINUX_DIR)/.unpacked
|
|
|
|
(cd $(UTIL-LINUX_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2003-09-03 09:18:18 +02:00
|
|
|
$(DISABLE_NLS) \
|
2004-03-10 09:11:05 +01:00
|
|
|
ARCH=$(ARCH) \
|
2003-03-10 18:58:07 +01:00
|
|
|
);
|
2003-11-19 18:17:56 +01:00
|
|
|
$(SED) "s,^INSTALLSUID=.*,INSTALLSUID=\\$$\(INSTALL\) -m \\$$\(BINMODE\)," \
|
2003-03-10 18:58:07 +01:00
|
|
|
$(UTIL-LINUX_DIR)/MCONFIG
|
2003-11-19 18:17:56 +01:00
|
|
|
$(SED) "s,^USE_TTY_GROUP=.*,USE_TTY_GROUP=no," $(UTIL-LINUX_DIR)/MCONFIG
|
2003-03-10 18:58:07 +01:00
|
|
|
touch $(UTIL-LINUX_DIR)/.configured
|
|
|
|
|
|
|
|
$(UTIL-LINUX_BINARY): $(UTIL-LINUX_DIR)/.configured
|
2004-03-10 09:11:05 +01:00
|
|
|
$(MAKE) ARCH=$(ARCH) CC=$(TARGET_CC) -C $(UTIL-LINUX_DIR)
|
2003-03-10 18:58:07 +01:00
|
|
|
|
|
|
|
$(UTIL-LINUX_TARGET_BINARY): $(UTIL-LINUX_BINARY)
|
|
|
|
$(MAKE) DESTDIR=$(TARGET_DIR) USE_TTY_GROUP=no -C $(UTIL-LINUX_DIR) install
|
|
|
|
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
|
|
|
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
|
|
|
|
|
|
|
util-linux: uclibc $(UTIL-LINUX_TARGET_BINARY)
|
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
util-linux-source: $(DL_DIR)/$(UTIL-LINUX_SOURCE)
|
|
|
|
|
2003-03-10 18:58:07 +01:00
|
|
|
util-linux-clean:
|
|
|
|
#There is no working 'uninstall' target. Just skip it...
|
|
|
|
#$(MAKE) DESTDIR=$(TARGET_DIR) -C $(UTIL-LINUX_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(UTIL-LINUX_DIR) clean
|
|
|
|
|
|
|
|
util-linux-dirclean:
|
|
|
|
rm -rf $(UTIL-LINUX_DIR)
|
|
|
|
|
|
|
|
|