You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.1 KiB
Bash
59 lines
2.1 KiB
Bash
pkgname=bforce
|
|
_gitname=binkleyforce
|
|
pkgver=r197.ad1776c
|
|
pkgrel=1
|
|
pkgdesc="binkleyforce FTN mailer"
|
|
arch=('i686' 'x86_64' 'aarch64')
|
|
url="http://binkleyforce.sourceforge.net/"
|
|
license=('GPL2')
|
|
source=(
|
|
"${pkgname}::git+https://github.com/zotrix/binkleyforce.git"
|
|
)
|
|
makedepends=('git' 'gcc' 'make' 'glibc')
|
|
provides=('bforce')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}/source"
|
|
./configure --prefix=/
|
|
make
|
|
}
|
|
|
|
prepare() {
|
|
cd "${pkgname}"
|
|
printf "$( pwd )\n"
|
|
}
|
|
|
|
pkgver() {
|
|
cd "$pkgname"
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgdir}
|
|
mkdir -p ${pkgdir}/etc
|
|
mkdir -p ${pkgdir}/usr/bin
|
|
mkdir -p ${pkgdir}/usr/local/bin
|
|
mkdir -p ${pkgdir}/usr/share/doc/bforce
|
|
mkdir -p ${pkgdir}/var/log/bforce
|
|
mkdir -p ${pkgdir}/var/spool/bforce
|
|
mkdir -p ${pkgdir}/var/spool/bforce/bt/in
|
|
mkdir -p ${pkgdir}/var/spool/bforce/bt/pin
|
|
mkdir -p ${pkgdir}/var/spool/bforce/bt/out
|
|
mkdir -p ${pkgdir}/var/spool/bforce/ndl
|
|
mkdir -p ${pkgdir}/var/spool/bforce/bforce
|
|
/usr/bin/install -c ${srcdir}/${pkgname}/source/bin/bforce ${pkgdir}/usr/bin/bforce
|
|
/usr/bin/install -c ${srcdir}/${pkgname}/source/bin/bfindex ${pkgdir}/usr/bin/bfindex
|
|
/usr/bin/install -c ${srcdir}/${pkgname}/source/bin/bfstat ${pkgdir}/usr/bin/bfstat
|
|
/usr/bin/install -c ${srcdir}/${pkgname}/source/bin/nlookup ${pkgdir}/usr/bin/nlookup
|
|
/usr/bin/install -c -m 644 ${srcdir}/${pkgname}/examples/bforce.conf ${pkgdir}/etc/bforce.conf.sample
|
|
/usr/bin/install -c -m 644 ${srcdir}/${pkgname}/examples/bforce.subst ${pkgdir}/etc/bforce.subst.sample
|
|
/usr/bin/install -c -m 644 ${srcdir}/${pkgname}/examples/bforce.passwd ${pkgdir}/etc/bforce.passwd.sample
|
|
/usr/bin/install -c -m 644 ${srcdir}/${pkgname}/examples/freq.aliases ${pkgdir}/etc/freq.aliases.sample
|
|
/usr/bin/install -c -m 644 ${srcdir}/${pkgname}/examples/freq.dirs ${pkgdir}/etc/freq.dirs.sample
|
|
/usr/bin/install -c ${srcdir}/${pkgname}/contrib/outman ${pkgdir}/usr/local/bin/outman
|
|
echo "Please, edit /usr/local/bin/outman"
|
|
cp ${srcdir}/${pkgname}/docs/* ${pkgdir}/usr/share/doc/bforce/
|
|
}
|
|
|
|
sha256sums=('SKIP')
|