Browse Source

Merge pull request #4116 from lucize/clamsmtp

mail: add package clamsmtp
lilik-openwrt-22.03
Hauke Mehrtens 8 years ago
committed by GitHub
parent
commit
3527f34b3e
2 changed files with 62 additions and 0 deletions
  1. +46
    -0
      mail/clamsmtp/Makefile
  2. +16
    -0
      mail/clamsmtp/files/clamsmtpd.init

+ 46
- 0
mail/clamsmtp/Makefile View File

@ -0,0 +1,46 @@
#
# Copyright (C) 2017 Lucian Cristian <lucian.cristian@gmail.com>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=clamsmtp
PKG_VERSION:=1.10
PKG_RELEASE:=1
PKG_SOURCE_URL:=http://thewalter.net/stef/software/clamsmtp/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_HASH:=a52fdb4b26e11ece30c478a806c95b1eda16f4e73937bd560ece7017fb0df92a
MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
PKG_LICENSE:=GPLv2
PKG_FIXUP:=autoreconf
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/clamsmtp
SECTION:=mail
CATEGORY:=Mail
DEPENDS:=+libpthread
TITLE:=clamsmtp
URL:=http://thewalter.net/stef/software/clamsmtp/
endef
define Package/clamsmtp/description
ClamSMTP is an SMTP filter that allows you to check for viruses using the ClamAV anti-virus software.
endef
define Package/clamsmtp/install
$(INSTALL_DIR) $(1)/usr/sbin \
$(1)/etc/init.d
$(CP) $(PKG_BUILD_DIR)/src/clamsmtpd $(1)/usr/sbin/
$(CP) $(PKG_BUILD_DIR)/doc/clamsmtpd.conf $(1)/etc/
$(INSTALL_BIN) ./files/clamsmtpd.init $(1)/etc/init.d/clamsmtpd
endef
$(eval $(call BuildPackage,clamsmtp))

+ 16
- 0
mail/clamsmtp/files/clamsmtpd.init View File

@ -0,0 +1,16 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2017 Lucian Cristian
START=91
USE_PROCD=1
PROG=/usr/sbin/clamsmtpd
start_service(){
procd_open_instance
procd_set_param command $PROG -p /var/run/clamsmtpd.pid
procd_close_instance
}
service_triggers(){
procd_add_reload_trigger "clamsmtpd"
}

Loading…
Cancel
Save