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.

63 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.2.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=https://salsa.debian.org/debian/at.git
  14. PKG_SOURCE_VERSION:=release/3.2.1
  15. PKG_MIRROR_HASH=c37feb425e7d310f29b4c8dffd846b8a3b410ff6e88a6563f0ecaa636fb22cc2
  16. PKG_MAINTAINER:=Phil Eichinger <phil@zankapfel.net>
  17. PKG_LICENSE:=GPL-2.0-or-later GPL-3.0-or-later ISC
  18. PKG_LICENSE_FILES:=COPYING Copyright
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/at
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. DEPENDS:=+libelf
  24. TITLE:=Delayed job execution and batch processing
  25. URL:=http://packages.debian.org/stable/at
  26. endef
  27. define Package/at/description
  28. At and batch read shell commands from standard input storing them as a job to
  29. be scheduled for execution in the future.
  30. endef
  31. export SENDMAIL=/bin/true
  32. EXTRA_CFLAGS:=-DNEED_YYWRAP -I$(PKG_BUILD_DIR) \
  33. $(TARGET_LDFLAGS)
  34. CONFIGURE_ARGS+= \
  35. --prefix=/usr \
  36. --without-selinux \
  37. --with-daemon_username=nobody \
  38. --with-daemon_groupname=nogroup \
  39. --with-jobdir=/var/spool/cron/atjobs \
  40. --with-atspool=/var/spool/cron/atspool
  41. CONFIGURE_VARS += \
  42. ac_cv_header_security_pam_appl_h=no
  43. define Package/at/install
  44. $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/sbin $(1)/etc/init.d/
  45. $(INSTALL_BIN) ./files/atd.init $(1)/etc/init.d/atd
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/at $(1)/usr/bin
  47. ln -sf at $(1)/usr/bin/atq
  48. ln -sf at $(1)/usr/bin/atrm
  49. $(INSTALL_BIN) $(PKG_BUILD_DIR)/atd $(1)/usr/sbin
  50. endef
  51. $(eval $(call BuildPackage,at))