2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
12 PKG_VERSION
:=3.1.10ubuntu
4
14 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://archive.ubuntu.com
/ubuntu
/pool
/main
/a
/at
16 PKG_MD5SUM
:=64eec8c9e5a6e16e775ee9efe31b8508
18 include $(INCLUDE_DIR
)/package.mk
24 TITLE
:=Delayed job execution and batch processing
27 define Package
/at
/description
28 At and batch read
shell commands from standard input
29 storing them
as a job to be scheduled for execution in the
33 export SENDMAIL
=/bin
/true
34 EXTRA_CFLAGS
:=-DNEED_YYWRAP
-I
$(PKG_BUILD_DIR
) -I
$(STAGING_DIR
)/usr
/include/libelf \
35 -L
$(STAGING_DIR
)/usr
/lib
36 CONFIGURE_ARGS
+=--with-daemon_username
=nobody
--with-daemon_groupname
=nogroup
38 define Package
/at
/install
39 $(INSTALL_DIR
) $(1)/usr
/bin
$(1)/usr
/sbin
$(1)/etc
/init.d
/
40 $(INSTALL_BIN
) .
/files
/atd.init
$(1)/etc
/init.d
/atd
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/at
$(1)/usr
/bin
42 ln
-sf at
$(1)/usr
/bin
/atq
43 ln
-sf at
$(1)/usr
/bin
/atrm
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/atd
$(1)/usr
/sbin
47 $(eval
$(call BuildPackage
,at
))