77 lines
2.9 KiB
Bash
77 lines
2.9 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=partimage
|
|
pkgver=0.6.9
|
|
_debver=$pkgver
|
|
_debrel=8
|
|
pkgrel=12
|
|
pkgdesc="Partition Image saves partitions in many formats to an image file."
|
|
arch=('i686' 'x86_64')
|
|
url='https://www.partimage.org/'
|
|
license=('GPL-2')
|
|
depends=('libnewt' 'bzip2' 'libressl')
|
|
makedepends=('quilt')
|
|
backup=('etc/partimaged/partimagedusers'
|
|
'etc/conf.d/partimaged')
|
|
install='partimage.install'
|
|
source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
|
|
"https://deb.debian.org/debian/pool/main/p/partimage/partimage_${_debver}-${_debrel}.debian.tar.xz"
|
|
"partimage-0.6.9-zlib-1.2.6.patch"
|
|
"use-SSLv3-by-default.patch"
|
|
"partimaged-gencrt"
|
|
"partimaged.confd"
|
|
"partimaged.initd")
|
|
sha512sums=('252885921b23933fdcdf0bb6efa4b82066b08ca95cc653296912d384ae875b421c1d39f347a90115315139176d4eab4a930c24919c2d38cf00ed29c764cd14d9'
|
|
'9a3e77425f7482e0e08225af27d6c2375317c377a9c81710ea246c5f621076cb6c608b4c78875c4bbbacdbdb8855a8f89afa4561172b72f112bae84f7b05432c'
|
|
'257354c109fda489ad1aa30da19d3bc5189d6098bd5641aa079a3319201e30fc8501fef7952cb9ae59eca8760b18f94fc5570a0a27773b595cabea2815156c27'
|
|
'580d9ef868b423fd77282839f619239f92789e202fc25cb2ee409ecc43424f89bd5d31314a6aba183ef36a61b427cb24a0ca1f62f53235b5bc60f574c5469a1b'
|
|
'3b8085ca27d550c00312a5059daceae10d33a863a15883181182eaf5f3ffac2e60b802cacb20f56a40388f97d85769549e408dbe4b387ad332786c04e9dfdc75'
|
|
'1be320a8dceb3076e6aa2d8b1a8a4d01a380ad1209133997fd0d87cf1d0974fc4877c3c8b41c07fbb99249c8a00132f2c5fa7ffadf26f4e41cc2abfcd6b62116'
|
|
'59165d373271b3f47d21217891cc5f5b37d9c57ae667c4a763aedd69cbcb54d2da190d67da0e08a161f91e5d99461dde7e142378d7a9c91968d7eb765555ba95')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
|
# Debian patches
|
|
export QUILT_PATCHES=debian/patches
|
|
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
|
export QUILT_DIFF_ARGS='--no-timestamps'
|
|
|
|
mv "$srcdir"/debian .
|
|
|
|
quilt push -av
|
|
else
|
|
patch -Np1 -i "${srcdir}/partimage-0.6.9-zlib-1.2.6.patch"
|
|
patch -Np1 -i "${srcdir}/use-SSLv3-by-default.patch"
|
|
|
|
sed -e 's/CRYPTO_lock/X509_new/g' -i configure
|
|
fi
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm0644 COPYING "${pkgdir}/usr/share/licenses/partimage/COPYING"
|
|
|
|
install -Dm0755 "${srcdir}/partimaged-gencrt" "${pkgdir}/usr/sbin/partimaged-gencrt"
|
|
|
|
chmod 644 "${pkgdir}/etc/partimaged/partimagedusers"
|
|
chown 110:110 "${pkgdir}/etc/partimaged/partimagedusers"
|
|
|
|
install -Dm0644 "${srcdir}/partimaged.confd" "${pkgdir}/etc/conf.d/partimaged"
|
|
install -Dm0755 "${srcdir}/partimaged.initd" "${pkgdir}/etc/init.d/partimaged"
|
|
}
|