summaryrefslogtreecommitdiff
path: root/pptpd-1.3.3/makepackage
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-10-06 16:55:05 +0400
committerKozlov Dmitry <dima@server>2010-10-06 16:55:05 +0400
commit45b3c9c5bdd896f51f47e29069e3c030ddb17d51 (patch)
treecbec5824ffb2eee20b98ad9892a357304384ff01 /pptpd-1.3.3/makepackage
parentba3db9f17477ea4b49c266c5cb50f63f3b074db2 (diff)
parent01ccd98495c9da1e79f7867bf52416b23f20200d (diff)
downloadaccel-ppp-45b3c9c5bdd896f51f47e29069e3c030ddb17d51.tar.gz
accel-ppp-45b3c9c5bdd896f51f47e29069e3c030ddb17d51.zip
merged branch accel-pptpd
Diffstat (limited to 'pptpd-1.3.3/makepackage')
-rwxr-xr-xpptpd-1.3.3/makepackage36
1 files changed, 0 insertions, 36 deletions
diff --git a/pptpd-1.3.3/makepackage b/pptpd-1.3.3/makepackage
deleted file mode 100755
index 7430ada9..00000000
--- a/pptpd-1.3.3/makepackage
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-# given source tree build .tar.gz and package for distribution on this host
-
-os=$(uname)
-if [ -f /etc/redhat-release ]; then
- DISTRO="RedHat"
- DVER=$(cat /etc/redhat-release | cut -d " " -f5-)
-elif [ -f /etc/SuSE-release ]; then
- DISTRO="SuSE"
- DVER=$(cat /etc/SuSE-release | head -n1 | cut -d " " -f3)
-elif [ -f /etc/debian_version ]; then
- DISTRO="Debian"
- DVER=$(cat /etc/debian_version)
-else
- DISTRO=$os
-fi
-
-version=$(./version)
-
-if [ "$DISTRO" == "RedHat" ]; then
- mkdir -p /tmp/pptpd-$version
- cp -ar * /tmp/pptpd-$version/
- cd /tmp
- tar -czf /usr/src/redhat/SOURCES/pptpd-$version.tar.gz pptpd-$version
- cd -
- rpmbuild -ba pptpd.spec
-elif [ "$DISTRO" == "Debian" ]; then
- DPKG_BP=`which dpkg-buildpackage 2>/dev/null`
- if [ -z "$DPKG_BP" ]; then
- echo "dpkg-buildpackage not installed. Do: apt-get install dpkg-dev"
- exit 1
- fi
- $DPKG_BP -rfakeroot
-else
- echo "No packagebuilder implemented yet."
-fi