-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
table.cache | ||
*.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
"server_port":8388, | ||
"local_port":1080, | ||
"password":"barfoo!", | ||
"timeout":60 | ||
"timeout":0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
if [[ $# != 1 ]]; then | ||
echo "$0 <arch, i386 or amd64>" | ||
exit 1 | ||
fi | ||
|
||
export CGO_ENABLED=0 | ||
export GOOS=linux | ||
|
||
arch=$1 | ||
case $arch in | ||
i386) | ||
export GOARCH=386 | ||
;; | ||
amd64) | ||
export GOARCH=amd64 | ||
;; | ||
*) | ||
echo "arch $i not supported" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
# build shadowsocks server | ||
pushd cmd/shadowsocks-server | ||
go build -a -v || exit 1 | ||
popd | ||
|
||
# create debian package | ||
DEBDIR=shadowsocks-go_0.6-1-$arch | ||
rm -rf $DEBDIR | ||
cp -r deb $DEBDIR | ||
|
||
sed -i -e "s/^Architecture.*$/Architecture: $arch/" $DEBDIR/DEBIAN/control || exit 1 | ||
|
||
mkdir -p $DEBDIR/usr/bin | ||
cp cmd/shadowsocks-server/shadowsocks-server $DEBDIR/usr/bin/shadowsocks | ||
|
||
fakeroot dpkg-deb --build $DEBDIR | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Package: shadowsocks-go | ||
Version: 0.6-1 | ||
Section: net | ||
Priority: optional | ||
Architecture: i386 | ||
Depends: | ||
Maintainer: CYF <[email protected]> | ||
Description: shadowsocks-go is the go port of shadowsocks, a light weight tunneling proxy | ||
This package contains only the server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"server":"127.0.0.1", | ||
"server_port":8388, | ||
"local_port":1080, | ||
"password":"barfoo!", | ||
"timeout":0 | ||
} |