packages/utils/at/Makefile
matteo a549e1ccdb packaged the atd daemon
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10904 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-21 20:46:26 +00:00

46 lines
1.2 KiB
Makefile

#
# Copyright (C) 2008 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_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://archive.ubuntu.com/ubuntu/pool/main/a/at
PKG_MD5SUM:=64eec8c9e5a6e16e775ee9efe31b8508
include $(INCLUDE_DIR)/package.mk
define Package/at
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Delayed job execution and batch processing
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.
endef
export SENDMAIL=/bin/true
EXTRA_CFLAGS:=-DNEED_YYWRAP -I$(PKG_BUILD_DIR)
CONFIGURE_ARGS+=--with-daemon_username=nobody --with-daemon_groupname=nogroup
define Package/at/install
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/sbin $(1)/etc/init.d/
$(INSTALL_BIN) ./files/atd.init $(1)/etc/init.d/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/at $(1)/usr/bin
ln -sf at $(1)/usr/bin/atq
ln -sf at $(1)/usr/bin/atrm
$(INSTALL_BIN) $(PKG_BUILD_DIR)/atd $(1)/usr/sbin
endef
$(eval $(call BuildPackage,at))