@Distag Thanks for the report. Should be fixed now.
Search Criteria
Package Details: vpcs 0.6-2
Package Actions
| Package Base: | vpcs |
|---|---|
| Description: | Simulates up to 9 computers for ping/traceroute purposes. |
| Upstream URL: | http://vpcs.sourceforge.net/ |
| Category: | network |
| Licenses: | |
| Submitter: | None |
| Maintainer: | btron |
| Last Packager: | btron |
| Votes: | 9 |
| First Submitted: | 2011-04-04 17:01 |
| Last Updated: | 2014-11-24 17:45 |
Dependencies (0)
Required by (0)
Sources
Latest Comments
Comment by btron
Comment by Distag
% 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
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
Please update to 0.5.beta1
https://github.com/GNS3/vpcs
Comment by Distag
This works. Thank you!
Comment by btron
Okay I updated the PKGBUILD to include your hacks. Should build properly now.
Comment by Distag
No, mk.sh doesn't work correctly!
Comment by btron
Does it build properly for you if you leave the makefile alone and use src/mk.sh to build the package?
Comment by Distag
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
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
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
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
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
}