2 # Copyright (C) 2008-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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_HASH
:=cb9af59c6a54edce9536ba629841055409d1f89d8ae26494727a97141fb4d5c1
18 PKG_LICENSE
:=GPL-2.0
+ GPL-3.0
+ ISC
19 PKG_LICENSE_FILES
:=COPYING Copyright
20 PKG_MAINTAINER
:=Phil Eichinger
<phil@zankapfel.net
>
22 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=Delayed job execution and batch processing
29 URL
:=http
://packages.debian.org
/stable
/at
32 define Package
/at
/description
33 At and batch read
shell commands from standard input storing them
as a job to
34 be scheduled for execution in the future.
37 export SENDMAIL
=/bin
/true
38 EXTRA_CFLAGS
:=-DNEED_YYWRAP
-I
$(PKG_BUILD_DIR
) \
41 CONFIGURE_ARGS
+=--prefix=/usr \
42 --with-daemon_username
=nobody \
43 --with-daemon_groupname
=nogroup \
44 --with-jobdir
=/var
/spool
/cron
/atjobs \
45 --with-atspool
=/var
/spool
/cron
/atspool
48 ac_cv_header_security_pam_appl_h
=no
50 define Package
/at
/install
51 $(INSTALL_DIR
) $(1)/usr
/bin
$(1)/usr
/sbin
$(1)/etc
/init.d
/
52 $(INSTALL_BIN
) .
/files
/atd.init
$(1)/etc
/init.d
/atd
53 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/at
$(1)/usr
/bin
54 ln
-sf at
$(1)/usr
/bin
/atq
55 ln
-sf at
$(1)/usr
/bin
/atrm
56 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/atd
$(1)/usr
/sbin
59 $(eval
$(call BuildPackage
,at
))