Commits

Anonymous committed 732c7de

Cleanup previous revisions

  • Participants
  • Parent commits 0c46414

Comments (0)

Files changed (2)

net-misc/nsq/nsq-0.2.15-r1.ebuild

- 
-#SRC_URI="http://github.com/bitly/nsq/archive/v${PV}.zip"
-EGIT_REPO_URI="https://github.com/bitly/nsq.git"
-IUSE="python"
-SLOT='0' 
-KEYWORDS="~amd64"
-DEPEND="dev-lang/go
-	"
-# include functions from eutils 
-inherit eutils
-
-pkg_setup() {
-	if [ ! -f /usr/lib/go/src/pkg/github.com/bitly/go-notify/notify.go ]; then
-		die "You need go-notify. Install it with 'go get github.com/bitly/go-notify' "
-	elif [ ! -f /usr/lib/go/src/pkg/github.com/bitly/go-simplejson/simplejson.go ]; then
-		die "You need go-simplejson. Install it with 'go get github.com/bitly/go-simplejson' "
-	elif [ ! -f /usr/lib/go/src/pkg/github.com/bmizerany/assert/assert.go ]; then
-		die "You need assert. Install it with 'go get github.com/bmizerany/assert' "
-	fi
-	#Create nsq user and group
-        enewgroup nsq
-        enewuser nsq -1 -1 /var/lib/nsq nsq
-
-}
-
-src_unpack() {
-    git clone https://github.com/bitly/nsq.git ${A} || die "Failed to get source"
-    cd nsq
-    git checkout v${PV}
-    sed -i 's/PREFIX=\/usr\/local/PREFIX=\/usr/g' Makefile
-    epatch "${FILESDIR}"/*.patch
-}
-
-src_compile() {
-	cd "${PN}"
-	emake || die "Compile failed"
-}
-
-src_install() {
-	cd "${PN}"
-	emake DESTDIR="${D}" install || die "Install failed"
-	diropts -m 0770 -o nsq -g nsq
-        keepdir /var/log/nsq
-	return	
-}
-
-
-pkg_postinst() {
-	go get github.com/bitly/nsq/nsq || die "Failed to get nsq package for GO"
-}

net-misc/nsq/nsq-0.2.15-r2.ebuild

- 
-#SRC_URI="http://github.com/bitly/nsq/archive/v${PV}.zip"
-EGIT_REPO_URI="https://github.com/bitly/nsq.git"
-IUSE="python supervisor"
-SLOT='0' 
-KEYWORDS="~amd64"
-DEPEND="dev-lang/go
-	python? ( dev-lang/python )
-	supervisor? ( app-admin/supervisor )
-	"
-# include functions from eutils 
-inherit eutils
-
-pkg_setup() {
-	if [ ! -f /usr/lib/go/src/pkg/github.com/bitly/go-notify/notify.go ]; then
-		die "You need go-notify. Install it with 'go get github.com/bitly/go-notify' "
-	elif [ ! -f /usr/lib/go/src/pkg/github.com/bitly/go-simplejson/simplejson.go ]; then
-		die "You need go-simplejson. Install it with 'go get github.com/bitly/go-simplejson' "
-	elif [ ! -f /usr/lib/go/src/pkg/github.com/bmizerany/assert/assert.go ]; then
-		die "You need assert. Install it with 'go get github.com/bmizerany/assert' "
-	fi
-	#Create nsq user and group
-        enewgroup nsq
-        enewuser nsq -1 -1 /var/lib/nsq nsq
-
-}
-
-src_unpack() {
-    git clone https://github.com/bitly/nsq.git ${A} || die "Failed to get source"
-    cd nsq
-    git checkout v${PV}
-    sed -i 's/PREFIX=\/usr\/local/PREFIX=\/usr/g' Makefile
-    epatch "${FILESDIR}"/*.patch
-}
-
-src_compile() {
-	cd "${PN}"
-	emake || die "Compile failed"
-}
-
-src_install() {
-	cd "${PN}"
-	emake DESTDIR="${D}" install || die "Install failed"
-	diropts -m 0770 -o nsq -g nsq
-        keepdir /var/log/nsq
-	
-	if use supervisor; then
-		diropts -o root -g root
-		keepdir /etc/supervisor.d
-		insinto /etc/supervisor.d/   
-                doins "${FILESDIR}"/nsq.conf 
-	fi
-	return	
-}
-
-
-pkg_postinst() {
-	go get github.com/bitly/nsq/nsq || die "Failed to get nsq package for GO"
-}