You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.6 KiB

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