Branch oldpackages for 14.07
[14.07/packages.git] / utils / at / Makefile
1 #
2 # Copyright (C) 2008-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=at
11 PKG_VERSION:=3.1.13
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
15 PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/a/at
16 PKG_MD5SUM:=1da61af6c29e323abaaf13ee1a8dad79
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/at
21   SECTION:=utils
22   CATEGORY:=Utilities
23   DEPENDS:=+libelf1
24   TITLE:=Delayed job execution and batch processing
25   URL:=http://packages.debian.org/stable/at
26   MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
27 endef
28
29 define Package/at/description
30  At and batch read shell commands from standard input storing them as a job to
31  be scheduled for execution in the future.
32 endef
33
34 export SENDMAIL=/bin/true
35 EXTRA_CFLAGS:=-DNEED_YYWRAP -I$(PKG_BUILD_DIR) \
36         $(TARGET_LDFLAGS)
37
38 CONFIGURE_ARGS+=--prefix=/usr \
39                 --with-daemon_username=nobody \
40                 --with-daemon_groupname=nogroup \
41                 --with-jobdir=/var/spool/cron/atjobs \
42                 --with-atspool=/var/spool/cron/atspool
43
44 CONFIGURE_VARS += \
45         ac_cv_header_security_pam_appl_h=no
46
47 define Package/at/install
48         $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/sbin $(1)/etc/init.d/
49         $(INSTALL_BIN) ./files/atd.init $(1)/etc/init.d/atd
50         $(INSTALL_BIN) $(PKG_BUILD_DIR)/at $(1)/usr/bin
51         ln -sf at $(1)/usr/bin/atq
52         ln -sf at $(1)/usr/bin/atrm
53         $(INSTALL_BIN) $(PKG_BUILD_DIR)/atd $(1)/usr/sbin
54 endef
55
56 $(eval $(call BuildPackage,at))