summaryrefslogtreecommitdiff
path: root/community/webfs/PKGBUILD
blob: 2896413813faebb62b6bd2c8ecf3dea972537306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 73433 2012-07-07 15:26:00Z cbrannon $
# Contributor: Roman Kyrylych <Roman.Kyrylych@gmail.com>
# Contributor: Mark Rosenstand <mark@archlinux.org>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Maintainer: Chris Brannon <chris@the-brannons.com>

pkgname=webfs
pkgver=1.21
pkgrel=7
pkgdesc="Simple http server for mostly static content."
arch=(i686 x86_64 'mips64el')
url="http://linux.bytesex.org/misc/webfs.html"
license=("GPL")
depends=('mime-types' 'openssl')
backup=(etc/conf.d/webfsd)
source=(http://dl.bytesex.org/releases/webfs/webfs-${pkgver}.tar.gz
        webfsd.rc webfsd.conf webfs.patch)
md5sums=('6dc125fe160479404147e7bbfc781dbc' '3ae9fcdcf79b193aa88e386055e9ebd7'
         'b2c1ab041a82acd8391b06dc38d986be' '7294edcec2589df04bb775270d56536e')

build() {
	cd ${srcdir}/${pkgname}-${pkgver}

	patch -i ${srcdir}/webfs.patch
	make
}

package() {
	cd ${srcdir}/${pkgname}-${pkgver}

	make prefix=/usr DESTDIR=${pkgdir} install
	install -Dm755 ${srcdir}/webfsd.rc   ${pkgdir}/etc/rc.d/webfsd
	install -Dm644 ${srcdir}/webfsd.conf ${pkgdir}/etc/conf.d/webfsd
}