2022-04-05 12:24:12 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2011-11-13 20:49:31 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2023-07-20 20:28:34 +02:00
|
|
|
EAPI=8
|
2011-11-13 20:49:31 +01:00
|
|
|
|
|
|
|
MY_PV=${PV/_p/.pl}
|
|
|
|
|
2023-07-10 19:43:00 +02:00
|
|
|
inherit systemd tmpfiles cmake
|
2011-11-13 20:49:31 +01:00
|
|
|
|
|
|
|
DESCRIPTION="MARtin Stovers NetWare-Emulator"
|
|
|
|
HOMEPAGE="http://www.compu-art.de/mars_nwe/"
|
2023-07-10 19:43:00 +02:00
|
|
|
SRC_URI="https://ftp.disconnected-by-peer.at/ncpfs/mars_nwe-${MY_PV}.tar.bz2"
|
2011-11-13 20:49:31 +01:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
2022-04-05 12:24:12 +02:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
2011-11-13 20:49:31 +01:00
|
|
|
IUSE=""
|
|
|
|
|
2011-11-13 21:33:46 +01:00
|
|
|
RDEPEND="sys-libs/glibc
|
2012-10-28 06:37:00 +01:00
|
|
|
sys-libs/gdbm
|
2023-07-10 19:43:00 +02:00
|
|
|
virtual/libcrypt
|
2022-03-01 11:46:08 +01:00
|
|
|
|| ( net-misc/ipx-utils net-fs/ncpfs )"
|
2011-11-13 20:49:31 +01:00
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
S="${WORKDIR}/mars_nwe-${MY_PV}"
|
|
|
|
|
2023-07-10 19:43:00 +02:00
|
|
|
#PATCHES=(
|
|
|
|
# "${FILESDIR}"/mars-nwe-syslog.patch
|
|
|
|
#)
|
2022-11-19 21:49:12 +01:00
|
|
|
|
2011-11-13 20:49:31 +01:00
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
2023-07-10 19:43:00 +02:00
|
|
|
"-DCMAKE_INSTALL_SYSCONFDIR=/etc"
|
|
|
|
"-DMARS_NWE_PID_DIR=/run/mars_nwe" )
|
2011-11-13 20:49:31 +01:00
|
|
|
|
2022-11-19 21:49:12 +01:00
|
|
|
cmake_src_configure
|
2011-11-13 20:49:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
keepdir /var/lib/mars_nwe/
|
|
|
|
keepdir /var/log/mars_nwe/
|
|
|
|
keepdir /var/spool/mars_nwe/
|
|
|
|
|
2022-11-19 21:49:12 +01:00
|
|
|
cmake_src_install
|
2012-10-28 06:37:00 +01:00
|
|
|
|
|
|
|
newinitd "${FILESDIR}"/mars-nwe.initd mars-nwe
|
2014-01-18 09:25:06 +01:00
|
|
|
|
|
|
|
systemd_dounit "${FILESDIR}"/mars-nwe.service
|
2023-07-10 19:43:00 +02:00
|
|
|
newtmpfiles "${FILESDIR}"/mars-nwe.tmpfilesd mars-nwe.conf
|
2011-11-13 20:49:31 +01:00
|
|
|
}
|
|
|
|
|
2023-07-10 19:43:00 +02:00
|
|
|
pkg_postinst() {
|
|
|
|
tmpfiles_process mars-nwe.conf
|
|
|
|
}
|