Merge pull request #13191 from Foxtrot/add-fakepop
fakepop: add new package
This commit is contained in:
commit
5333cdcbb9
2 changed files with 52 additions and 0 deletions
42
net/fakepop/Makefile
Normal file
42
net/fakepop/Makefile
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
#
|
||||||
|
# This software is licensed under the Public Domain.
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=fakepop
|
||||||
|
PKG_VERSION:=11
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=Marc Egerton <foxtrot@realloc.me>
|
||||||
|
PKG_LICENSE:=GPL-3.0-or-later
|
||||||
|
|
||||||
|
PKG_SOURCE:=fakepop_11.tar.gz
|
||||||
|
PKG_SOURCE_URL:=http://deb.debian.org/debian/pool/main/f/fakepop/
|
||||||
|
PKG_HASH:=9756259ade152f8dac78174019b4145b4e07738631055c34bc04e64f865393e7
|
||||||
|
# Downloaded .tar.gz contains "fakepop-10" instead of "fakepop-11"...
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/fakepop-10
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/fakepop
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Network
|
||||||
|
TITLE:=fakepop
|
||||||
|
DEPENDS:=+glib2 +xinetd
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/fakepop/description
|
||||||
|
fake pop3 server which returns the same messages to all users
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/fakepop/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fakepop $(1)/usr/bin/
|
||||||
|
$(INSTALL_DIR) $(1)/etc/xinetd.d
|
||||||
|
$(CP) ./files/fakepop $(1)/etc/xinetd.d/
|
||||||
|
mkdir $(1)/etc/fakepop
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,fakepop))
|
10
net/fakepop/files/fakepop
Normal file
10
net/fakepop/files/fakepop
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
service pop3
|
||||||
|
{
|
||||||
|
socket_type = stream
|
||||||
|
protocol = tcp
|
||||||
|
wait = no
|
||||||
|
user = nobody
|
||||||
|
server = /usr/bin/fakepop
|
||||||
|
port = 110
|
||||||
|
disable = no
|
||||||
|
}
|
Loading…
Reference in a new issue