#
-# Copyright (C) 2008 OpenWrt.org
+# Copyright (C) 2008-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
-# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=at
-PKG_VERSION:=3.1.10ubuntu4
+PKG_VERSION:=3.1.13
PKG_RELEASE:=2
-PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=http://archive.ubuntu.com/ubuntu/pool/main/a/at
-PKG_MD5SUM:=64eec8c9e5a6e16e775ee9efe31b8508
+PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
+PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/a/at
+PKG_MD5SUM:=1da61af6c29e323abaaf13ee1a8dad79
include $(INCLUDE_DIR)/package.mk
define Package/at
SECTION:=utils
CATEGORY:=Utilities
- DEPENDS:=+libelf
+ DEPENDS:=+libelf1
TITLE:=Delayed job execution and batch processing
+ URL:=http://packages.debian.org/stable/at
+ MAINTAINER:=Luka Perkov <openwrt@lukaperkov.net>
endef
define Package/at/description
- At and batch read shell commands from standard input
- storing them as a job to be scheduled for execution in the
- future.
+ At and batch read shell commands from standard input storing them as a job to
+ be scheduled for execution in the future.
endef
export SENDMAIL=/bin/true
-EXTRA_CFLAGS:=-DNEED_YYWRAP -I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include/libelf \
- -L$(STAGING_DIR)/usr/lib
-CONFIGURE_ARGS+=--with-daemon_username=nobody --with-daemon_groupname=nogroup \
- --with-jobdir=/var/spool/cron/atjobs --with-atspool=/var/spool/cron/atspool
+EXTRA_CFLAGS:=-DNEED_YYWRAP -I$(PKG_BUILD_DIR) \
+ $(TARGET_LDFLAGS)
+
+CONFIGURE_ARGS+=--prefix=/usr \
+ --with-daemon_username=nobody \
+ --with-daemon_groupname=nogroup \
+ --with-jobdir=/var/spool/cron/atjobs \
+ --with-atspool=/var/spool/cron/atspool
+
+CONFIGURE_VARS += \
+ ac_cv_header_security_pam_appl_h=no
define Package/at/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/sbin $(1)/etc/init.d/