Add sysstat (#2124)
[openwrt/svn-archive/archive.git] / utils / at / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=at
12 PKG_VERSION:=3.1.10ubuntu4
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://archive.ubuntu.com/ubuntu/pool/main/a/at
17 PKG_MD5SUM:=64eec8c9e5a6e16e775ee9efe31b8508
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/at
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=+libelf
25 TITLE:=Delayed job execution and batch processing
26 endef
27
28 define Package/at/description
29 At and batch read shell commands from standard input
30 storing them as a job to be scheduled for execution in the
31 future.
32 endef
33
34 export SENDMAIL=/bin/true
35 EXTRA_CFLAGS:=-DNEED_YYWRAP -I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include/libelf \
36 -L$(STAGING_DIR)/usr/lib
37 CONFIGURE_ARGS+=--with-daemon_username=nobody \
38 --with-daemon_groupname=nogroup \
39 --with-jobdir=/var/spool/cron/atjobs \
40 --with-atspool=/var/spool/cron/atspool \
41 --without-pam \
42
43 define Package/at/install
44 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/sbin $(1)/etc/init.d/
45 $(INSTALL_BIN) ./files/atd.init $(1)/etc/init.d/atd
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/at $(1)/usr/bin
47 ln -sf at $(1)/usr/bin/atq
48 ln -sf at $(1)/usr/bin/atrm
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/atd $(1)/usr/sbin
50 endef
51
52 $(eval $(call BuildPackage,at))