Commits

Anonymous committed e2c2cfd

Bumping new version

  • Participants
  • Parent commits 2ec8a9b

Comments (0)

Files changed (2)

net-misc/nsq/Manifest

 AUX fix-nsqadmin-templates.patch 815 SHA256 65d2df27243677d4a25f383fb9ebaaef29fbf0179c3b0f2df410b73d1dad04b8 SHA512 0e1bbbc944b1512baffaea3f486124cf11aec62553f9930d0953246dfb55d5b90215606f77b64dad2117e0a15288e7db3643d3d7decbbbce2b01e408e76c729d WHIRLPOOL a586ca361d35b254bd2236fe8af63a9fb415c5cfc3eabcd9ca1c7e3b8f20ad1be4f772388208a1c578169daee03749fc7aa51da8a0fe2d96de35459d8026f19b
 AUX nsq.conf 872 SHA256 e08738afc7a55c76198f85d359f8828c236d4c2c36a4d9b9a0f42c5f1fcc24c9 SHA512 344a2b583d8ca03aa6f2a7aa4a57221bf97460e8bb4cd7b0f5a8ccd0e1ab0e67f98e5b1d339da94c51da2b43c222ab9248d77ec08f55aba547af8672946da350 WHIRLPOOL f2eacc6200dd1c6d1de7f7b9652caace9657d52317ede393ce8f8905bb8fdc0cd029aad6ef56e69311f706a59116ee33ffb3b92c95f3de0fd79a096591d6f841
 EBUILD nsq-0.2.15-r3.ebuild 1646 SHA256 b2d3d0b42d254b556ea1e279f5a5923161d0fb15b583f3fdcac8d61e89a0c95c SHA512 fcfd4207533216b71cf58b07785125e2399665ddacc6e8186d99b4ab8d71421001f8af4e44b3e8519383649d052552ef24ca990ddc53791f27db27c63814b7c3 WHIRLPOOL 50a6eb95868910b56475da60b1e190ced394d12aec938d9899861c7ccfec45777e09335dc87ffdbd9fae81448ce6e9423885da6439a6060e0f41728d03031475
+EBUILD nsq-0.2.16.ebuild 1646 SHA256 b2d3d0b42d254b556ea1e279f5a5923161d0fb15b583f3fdcac8d61e89a0c95c SHA512 fcfd4207533216b71cf58b07785125e2399665ddacc6e8186d99b4ab8d71421001f8af4e44b3e8519383649d052552ef24ca990ddc53791f27db27c63814b7c3 WHIRLPOOL 50a6eb95868910b56475da60b1e190ced394d12aec938d9899861c7ccfec45777e09335dc87ffdbd9fae81448ce6e9423885da6439a6060e0f41728d03031475
 EBUILD nsq-9999.ebuild 1729 SHA256 ab8309f0491bd7547a8fa8a7c6308349d5bb34f2177bfe381a105f0dad4fb473 SHA512 83b3e342ce27f67b397434d2c2d94cc482c6ae7f3b8b9d7ce6b31cd02c6df14be342e457ad09b20a6c51af23f8f384e5841cb638745192ce3dc4e099896b7757 WHIRLPOOL 44c1dc3a41a060ad77d1a2bcc2bed395ada4051fb162189a170434454ba7c339de682d4ba709e01bc63b6d1865c0e5c509336bc82937d482a70f6c11974dd841

net-misc/nsq/nsq-0.2.16.ebuild

+ 
+#SRC_URI="http://github.com/bitly/nsq/archive/v${PV}.zip"
+EGIT_REPO_URI="https://github.com/bitly/nsq.git"
+IUSE="pynsq supervisor"
+SLOT='0' 
+KEYWORDS="~amd64"
+DEPEND="dev-lang/go
+	pynsq? ( dev-python/pynsq )
+	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
+    if [ ${PV} != 9999 ]; then
+	    git checkout v${PV}
+    fi
+    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"
+}