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.

61 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:=3
  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_MAINTAINER:=Phil Eichinger <phil@zankapfel.net>
  15. PKG_LICENSE:=GPL-2.0-or-later GPL-3.0-or-later ISC
  16. PKG_LICENSE_FILES:=COPYING Copyright
  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+= \
  33. --prefix=/usr \
  34. --without-selinux \
  35. --with-daemon_username=nobody \
  36. --with-daemon_groupname=nogroup \
  37. --with-jobdir=/var/spool/cron/atjobs \
  38. --with-atspool=/var/spool/cron/atspool
  39. CONFIGURE_VARS += \
  40. ac_cv_header_security_pam_appl_h=no
  41. define Package/at/install
  42. $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/sbin $(1)/etc/init.d/
  43. $(INSTALL_BIN) ./files/atd.init $(1)/etc/init.d/atd
  44. $(INSTALL_BIN) $(PKG_BUILD_DIR)/at $(1)/usr/bin
  45. ln -sf at $(1)/usr/bin/atq
  46. ln -sf at $(1)/usr/bin/atrm
  47. $(INSTALL_BIN) $(PKG_BUILD_DIR)/atd $(1)/usr/sbin
  48. endef
  49. $(eval $(call BuildPackage,at))