mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
fakepop: who wouldn't want a fake pop3 server?
This commit is contained in:
parent
7835f919df
commit
16fd3b2fc0
3 changed files with 57 additions and 0 deletions
1
net-mail/fakepop/Manifest
Normal file
1
net-mail/fakepop/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST fakepop_11.tar.gz 15727 BLAKE2B a0caf86634d1a3a1ef88d3b4904b5d2890f43a93f7a399f8553f128f32eccb14de42a935fda646782d09bfdc1aea43fca6867897e935eaa715e8632e4af6ad09 SHA512 f5f9f1b5eb44c3a820df7407f666c6e5f66ea709f64f6bcf85c619d50299994f4516d757d27864deea0c7e3d1734cb3a5017b2b70898c13a080539f841042ffd
|
||||
46
net-mail/fakepop/fakepop-11.ebuild
Normal file
46
net-mail/fakepop/fakepop-11.ebuild
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Copyright 2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="fake pop3 server which returns the same messages to all users"
|
||||
HOMEPAGE="https://packages.debian.org/jessie/fakepop"
|
||||
SRC_URI="http://deb.debian.org/debian/pool/main/f/fakepop/fakepop_11.tar.gz"
|
||||
|
||||
LICENSE="GPL"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-libs/glib:="
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND=""
|
||||
PDEPEND="sys-apps/xinetd"
|
||||
|
||||
S="${WORKDIR}/${PN}-10"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s#doc/${PN}#${P}#" \
|
||||
-e "s#-Wall -O2#${CFLAGS}#" \
|
||||
-e "s#glib-2.0)#glib-2.0) ${LDFLAGS}#" \
|
||||
-e '/zip/d' \
|
||||
-e 's#gz#xz#' Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake clean
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install
|
||||
|
||||
insinto /etc/xinet.d
|
||||
doins "${FILESDIR}/fakepop"
|
||||
|
||||
dodir /etc/fakepop
|
||||
mv "${ED}"/usr/share/fakepop-11/examples/README.* "${ED}"/etc/fakepop
|
||||
rm "${ED}"/etc/fakepop/README
|
||||
fowners -R nobody:nobody /etc/fakepop
|
||||
}
|
||||
10
net-mail/fakepop/files/fakepop
Normal file
10
net-mail/fakepop/files/fakepop
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
service pop3
|
||||
{
|
||||
socket_type = stream
|
||||
protocol = tcp
|
||||
wait = no
|
||||
user = nobody
|
||||
server = /usr/sbin/in.fakepop
|
||||
port = 110
|
||||
disable = yes
|
||||
}
|
||||
Loading…
Reference in a new issue