void-packages/srcpkgs/uucp/template

43 lines
1.2 KiB
Bash

# Template file for 'uucp'
pkgname=uucp
version=1.07
revision=2
build_style=gnu-configure
configure_args="--with-newconfigdir=/etc/uucp --sbindir=/usr/bin"
conf_files="/etc/uucp/config /etc/uucp/sys /etc/uucp/port"
makedepends="wget"
short_desc="Taylor UUCP is a free implementation of UUCP"
maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://www.gnu.org/software/uucp/uucp.html"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=060c15bfba6cfd1171ad81f782789032113e199a5aded8f8e0c1c5bd1385b62c
patch_args="-Np1"
system_accounts="_uucp"
_uucp_homedir="/var/spool/uucp"
make_dirs="
/var/spool/uucp 0750 _uucp _uucp
/var/spool/uucp/Lock 0750 _uucp _uucp
/var/spool/uucp/Log 0750 _uucp _uucp
/var/spool/uucppublic 0750 _uucp _uucp"
pre_configure() {
sed -i 's|${CC-cc} -E|${CC-cc} -E|g' configure
}
do_install() {
make DESTDIR=${DESTDIR} install
vmkdir etc/uucp/
vinstall sample/config 0644 etc/uucp/
vinstall sample/sys1 0644 etc/uucp/ sys
vinstall sample/port 0644 etc/uucp/
sed -i 's|\$\*|"$@"|' ${DESTDIR}/usr/bin/{uuto,uusched}
chmod u+w ${DESTDIR}/usr/bin/*
vman ${FILESDIR}/uulog.1
vman ${FILESDIR}/uuname.1
vman ${FILESDIR}/uupick.1
vman ${FILESDIR}/uuto.1
vman ${FILESDIR}/uusched.8
}