diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-28 15:58:03 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-07-28 15:58:03 +0000 |
commit | 88753b90a66c96431becf8fc9adcfa52f36e4104 (patch) | |
tree | 73a9f0783ad24510c0a8e668d666a2d087691065 | |
parent | 614047e2a9251f3f52f4159e3812521a8e364d50 (diff) | |
download | aports-88753b90a66c96431becf8fc9adcfa52f36e4104.tar.bz2 aports-88753b90a66c96431becf8fc9adcfa52f36e4104.tar.xz |
testing/ipcalc: new aport
-rw-r--r-- | testing/ipcalc/APKBUILD | 34 | ||||
-rw-r--r-- | testing/ipcalc/fix-ipcalc-path.patch | 13 |
2 files changed, 47 insertions, 0 deletions
diff --git a/testing/ipcalc/APKBUILD b/testing/ipcalc/APKBUILD new file mode 100644 index 000000000..d35fa51bf --- /dev/null +++ b/testing/ipcalc/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=ipcalc +pkgver=0.41 +pkgrel=0 +pkgdesc="Network IP calculator" +url="http://jodies.de/ipcalc" +arch="noarch" +license="GPL" +depends="perl" +makedepends="" +install="" +subpackages="" +source="http://jodies.de/ipcalc-archive/$pkgname-$pkgver.tar.gz +fix-ipcalc-path.patch" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + return 0 +} + +package() { + cd "$builddir" + install -Dm0755 ipcalc.cgi "$pkgdir"/usr/lib/$pkgname/cgi-bin/ipcalc.cgi + install -Dm0755 ipcalc "$pkgdir"/usr/bin/ipcalc +} + +md5sums="fb791e9a5220fc8e624d915e18fc4697 ipcalc-0.41.tar.gz +4bb78707597d1864630c890a27a4bd14 fix-ipcalc-path.patch" +sha256sums="dda9c571ce3369e5b6b06e92790434b54bec1f2b03f1c9df054c0988aa4e2e8a ipcalc-0.41.tar.gz +059447b228ea2ddb7af7023c512f5419631b20cdd6c1f75308e2f4ff1824d5d7 fix-ipcalc-path.patch" +sha512sums="089eb2b9a38b07caa182ff11547a93d86aed570311fc8cd9e636c7546ab4d15acc854b9d79bbba9c797dcfbbedd1d6f4d521aec97bf613905fe5198a29c9889d ipcalc-0.41.tar.gz +fd1a77af234d58d7d3dafc161774006a044bf317190f18bc7aa0bee75d2ef4d7ef1d0ebe63585cf4daff093af6a1c7b87bb0b39f3de7bfc918d18ec010951d14 fix-ipcalc-path.patch" diff --git a/testing/ipcalc/fix-ipcalc-path.patch b/testing/ipcalc/fix-ipcalc-path.patch new file mode 100644 index 000000000..a3007a6c0 --- /dev/null +++ b/testing/ipcalc/fix-ipcalc-path.patch @@ -0,0 +1,13 @@ +diff --git a/ipcalc.cgi b/ipcalc.cgi +index b2829ff..d0dcde7 100755 +--- a/ipcalc.cgi ++++ b/ipcalc.cgi +@@ -40,7 +40,7 @@ + # 0.26 27.07.2006 Replaced REQUEST_URI with SCRIPT_URL to prevent cross-site-scripting attacks + + $|=1; +-$ipcalc = "/usr/local/bin/ipcalc"; ++$ipcalc = "/usr/bin/ipcalc"; + $MAIL_ADDRESS="ipcalc-200502@jodies.de"; + # history: + # 200404 |