lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1563B)


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