Package Details: vpcs 0.6-2

Package Base: vpcs
Description: Simulates up to 9 computers for ping/traceroute purposes.
Upstream URL: http://vpcs.sourceforge.net/
Category: network
Licenses: BSD
Submitter: None
Maintainer: btron
Last Packager: btron
Votes: 9
First Submitted: 2011-04-04 17:01
Last Updated: 2014-11-24 17:45

Latest Comments

Comment by btron

2014-11-24 17:50

@Distag Thanks for the report. Should be fixed now.

Comment by Distag

2014-11-23 18:11

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0curl: (22) The requested URL returned error: 404 Not Found

Comment by btron

2014-11-20 18:42

I can't find a src tarball for the 0.6 release, so I'm using an svn snapshot at r102, which as far as I can tell is the 0.6 release. Please let me know if this causes any issues.

Comment by astroboy589

2014-07-13 07:54

Please update to 0.5.beta1

https://github.com/GNS3/vpcs

Comment by Distag

2014-02-12 09:43

This works. Thank you!

Comment by btron

2014-02-09 19:51

Okay I updated the PKGBUILD to include your hacks. Should build properly now.

Comment by Distag

2014-02-09 19:37

No, mk.sh doesn't work correctly!

Comment by btron

2014-02-09 19:22

Does it build properly for you if you leave the makefile alone and use src/mk.sh to build the package?

Comment by Distag

2014-02-09 18:29

So, I have found a solution:

I have changed your build() function for x86_64:

build() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
if [[ ${arch} == x86_64 ]] ; then sed -i "s/i386/x86_64/" Makefile.linux; fi
sed -i "s/-s -static//" Makefile.linux
make -f ./Makefile.linux
}

I don't know if it is a correct writing of a PKGBUILD, particularly about the IF structure, but this works now.

Comment by Distag

2014-02-09 17:15

An Error in the Build:

gcc vpcs.o daemon.o readline.o packets.o utils.o queue.o command.o dev.o dhcp.o command6.o packets6.o ip.o tcp.o inet6.o dns.o remote.o help.o dump.o relay.o hv.o -o vpcs -lpthread -lutil -s -static
/usr/bin/ld: can't find -lutil
Makefile.linux:34: recipe for target 'vpcs' failed
make: *** [vpcs] Error 1

Anonymous comment

2012-01-04 20:46

Oh damn, so sorry for not responding and maintaining this. Been quite busy with school. Yes if you want, I'd be happy to hand it over. I'm not using vpcs anymore, so I'd rather have someone more familiar with it handle this. I disowned the package!

Comment by btron

2012-01-04 20:09

Seems like version 0.3 was released under BSD licensing and the sourceforge page is back.

Do you mind if I adopt this package, HyperBaton?

Comment by btron

2011-10-21 21:24

The sourceforge page is no longer, but a mirror still lives at www.freecode.com.cn

The old pkgbuild also installed a bash script into /usr/bin which didn't allow you to pass arguments to vpcs. Took me quite some time to figure out why "-e" for tap mode wouldn't work.

Here's a working PKGBUILD with updated source url and a plain old symlink rather than the vpcs bash wrapper:

pkgname=vpcs
pkgver=0.21a
pkgrel=5
pkgdesc="Simulates up to 9 computers for ping/traceroute purposes."
arch=('i686' 'x86_64')
url="http://www.freecode.com.cn/doku.php?id=wiki:vpcs"
license=('GPL')
install=vpcs.install
backup=('opt/vpcs/startup.vpc')
makedepends=('')
source=("${pkgname}-${pkgver}.zip::http://www.freecode.com.cn/lib/exe/fetch.php?media=wiki:${pkgname}-${pkgver}.zip")
md5sums=('19f1ca34ce9bd585ab5d5a1d73f8f974')

package() {
local _vpcsdir="opt/vpcs"
local _bindir="usr/bin"
local _binary="vpcs32"

cd "${srcdir}"
mkdir -p "${pkgdir}/${_vpcsdir}" "${pkgdir}/${_bindir}"
cp ${pkgver}/startup.vpc ${pkgver}/readme.txt ${pkgdir}/${_vpcsdir}
if [ $CARCH = "x86_64" ]; then
_binary="vpcs64"
fi
cp ${pkgver}/${_binary} ${pkgdir}/${_vpcsdir}/vpcs
chmod +x ${pkgdir}/${_vpcsdir}/vpcs
ln -sf /opt/vpcs/vpcs ${pkgdir}/${_bindir}/vpcs
}