mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-11-04 02:11:39 +01:00 
			
		
		
		
	testing/jabberd14 Updated APKBUILD and added intit script
This commit is contained in:
		
							parent
							
								
									499f5ab5fa
								
							
						
					
					
						commit
						348e39b2fa
					
				@ -1,26 +1,29 @@
 | 
			
		||||
# Contributor: 
 | 
			
		||||
# Maintainer: 
 | 
			
		||||
# Contributor: Michael Mason <ms13sp@gmail.com> 
 | 
			
		||||
pkgname=jabberd14
 | 
			
		||||
pkgver=1.6.1.1
 | 
			
		||||
pkgrel=0
 | 
			
		||||
pkgdesc="Jabber server or XMPP"
 | 
			
		||||
url="http://jabberd.org/"
 | 
			
		||||
license="GPL"
 | 
			
		||||
depends="uclibc gnutls libidn"
 | 
			
		||||
makedepends="gnutls-dev libidn-dev"
 | 
			
		||||
depends="uclibc uclibc++ gnutls libidn popt expat"
 | 
			
		||||
makedepends="automake pkgconfig gnutls-dev libidn-dev libtool uclibc++-dev popt-dev pth pth-dev expat-dev libgcrypt-dev"
 | 
			
		||||
install=
 | 
			
		||||
subpackages="$pkgname-doc $pkgname-dev"
 | 
			
		||||
source="http://download.jabberd.org/jabberd14/jabberd14-1.6.1.1.tar.gz"
 | 
			
		||||
source="http://download.jabberd.org/jabberd14/$pkgname-$pkgver.tar.gz"
 | 
			
		||||
 | 
			
		||||
build() {
 | 
			
		||||
	cd "$srcdir/$pkgname-$pkgver"
 | 
			
		||||
 | 
			
		||||
	export CXX=g++-uc
 | 
			
		||||
	
 | 
			
		||||
	./configure --prefix=/usr \
 | 
			
		||||
		--sysconfdir=/etc \
 | 
			
		||||
		--mandir=/usr/share/man \
 | 
			
		||||
		--infodir=/usr/share/info
 | 
			
		||||
	make || return 1
 | 
			
		||||
	make DESTDIR="$pkgdir" install
 | 
			
		||||
		--infodir=/usr/share/info \
 | 
			
		||||
		--enable-ipv6
 | 
			
		||||
	make -j1 || return 1
 | 
			
		||||
	make -j1 DESTDIR="$pkgdir" install
 | 
			
		||||
	
 | 
			
		||||
install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										29
									
								
								testing/jabberd14/jabberd14.initd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								testing/jabberd14/jabberd14.initd
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,29 @@
 | 
			
		||||
#!/sbin/runscript
 | 
			
		||||
# Copyright 1999-2005 Gentoo Foundation
 | 
			
		||||
# Distributed under the terms of the GNU General Public License v2
 | 
			
		||||
# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/net-im/jabberd/files/jabberd-1.6.1.1.init,v 1.1 2008/06/18 12:24:56 nelchael Exp $
 | 
			
		||||
 | 
			
		||||
depend() {
 | 
			
		||||
 | 
			
		||||
	need net
 | 
			
		||||
	provide jabber-server
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
start() {
 | 
			
		||||
 | 
			
		||||
	ebegin "Starting Jabber Server"
 | 
			
		||||
	start-stop-daemon --start \
 | 
			
		||||
		-c jabber:jabber \
 | 
			
		||||
		-x /usr/bin/jabberd -- -B -c /etc/jabber/jabberd.xml
 | 
			
		||||
	eend $?
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
stop() {
 | 
			
		||||
 | 
			
		||||
	ebegin "Stopping Jabber Server"
 | 
			
		||||
	start-stop-daemon --stop -x /usr/bin/jabberd
 | 
			
		||||
	eend $?
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user