fakepop: who wouldn't want a fake pop3 server?

This commit is contained in:
Rick Farina (Zero_Chaos) 2019-04-25 13:06:48 -04:00
parent 7835f919df
commit 16fd3b2fc0
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A
3 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST fakepop_11.tar.gz 15727 BLAKE2B a0caf86634d1a3a1ef88d3b4904b5d2890f43a93f7a399f8553f128f32eccb14de42a935fda646782d09bfdc1aea43fca6867897e935eaa715e8632e4af6ad09 SHA512 f5f9f1b5eb44c3a820df7407f666c6e5f66ea709f64f6bcf85c619d50299994f4516d757d27864deea0c7e3d1734cb3a5017b2b70898c13a080539f841042ffd

View 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
}

View 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
}