summaryrefslogtreecommitdiffstats
path: root/package/at/at.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-15 06:50:34 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-15 06:50:34 +0000
commit0c21223712d9d477731d2d78a36ea2fc7e1746e4 (patch)
tree64f2e05cc499ab5551a7cfa94ff6793d10e5b634 /package/at/at.mk
parent0b940a8ed1ab3313610ff8b6eb8288b852060fc5 (diff)
downloadbuildroot-novena-0c21223712d9d477731d2d78a36ea2fc7e1746e4.tar.gz
buildroot-novena-0c21223712d9d477731d2d78a36ea2fc7e1746e4.zip
import at package by akvadrako #506
Diffstat (limited to 'package/at/at.mk')
-rw-r--r--package/at/at.mk67
1 files changed, 67 insertions, 0 deletions
diff --git a/package/at/at.mk b/package/at/at.mk
new file mode 100644
index 000000000..e701e0e06
--- /dev/null
+++ b/package/at/at.mk
@@ -0,0 +1,67 @@
+#############################################################
+#
+# at
+#
+#############################################################
+AT_VER:=3.1.9
+AT_SOURCE:=at_$(AT_VER).tar.gz
+AT_SITE:=http://ftp.debian.org/debian/pool/main/a/at
+AT_DIR:=$(BUILD_DIR)/at-$(AT_VER)
+AT_CAT:=zcat
+AT_TARGET_BINARY:=usr/bin/at
+
+$(DL_DIR)/$(AT_SOURCE):
+ $(WGET) -P $(DL_DIR) $(AT_SITE)/$(AT_SOURCE)
+
+$(AT_DIR)/.unpacked: $(DL_DIR)/$(AT_SOURCE)
+ $(AT_CAT) $(DL_DIR)/$(AT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(AT_DIR) package/at/ at\*.patch
+ touch $(AT_DIR)/.unpacked
+
+$(AT_DIR)/.configured: $(AT_DIR)/.unpacked
+ (cd $(AT_DIR); rm -rf config.cache; \
+ $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ ./configure \
+ --target=$(GNU_TARGET_NAME) \
+ --host=$(GNU_TARGET_NAME) \
+ --build=$(GNU_HOST_NAME) \
+ --prefix=/usr \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-jobdir=/var/lib/atjobs \
+ --with-atspool=/var/lib/atspool \
+ --with-daemon_username=at \
+ --with-daemon_groupname=at \
+ );
+ touch $(AT_DIR)/.configured
+
+$(AT_DIR)/$(AT_BINARY): $(AT_DIR)/.configured
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(AT_DIR)
+
+$(TARGET_DIR)/$(AT_TARGET_BINARY): $(AT_DIR)/$(AT_BINARY)
+ # Use fakeroot to pretend to do 'make install' as root
+ rm -f $(STAGING_DIR)/.fakeroot.at
+ $(STAGING_DIR)/usr/bin/fakeroot -s $(STAGING_DIR)/.fakeroot.at -- \
+ $(MAKE) DAEMON_USERNAME=root DAEMON_GROUPNAME=root \
+ $(TARGET_CONFIGURE_OPTS) DESTDIR=$(TARGET_DIR) -C $(AT_DIR) install
+ $(INSTALL) -m 0755 -D $(AT_DIR)/debian/rc $(TARGET_DIR)/etc/init.d/S99at
+
+at: uclibc host-fakeroot $(TARGET_DIR)/$(AT_TARGET_BINARY)
+
+at-clean:
+ $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(AT_DIR) uninstall
+ -$(MAKE) -C $(AT_DIR) clean
+
+at-dirclean:
+ rm -rf $(AT_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_AT)),y)
+TARGETS+=at
+endif