-
Notifications
You must be signed in to change notification settings - Fork 107
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
38 changed files
with
736 additions
and
236 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
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
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
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,5 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# Allow the source code to refer to github.com/driskell/log-courier paths | ||
mkdir -p src/github.com/driskell | ||
ln -nsf ../../.. src/github.com/driskell/log-courier | ||
# Allow 'go get' to see we already have the log-courier packages by setting | ||
# up a rough Go workspace. | ||
|
||
rm -rf src/github.com/driskell/log-courier | ||
|
||
if [ "$OS" = "Windows_NT" ]; then | ||
# Windows lacks symlinks and MinGW 'ln' fails with 'Permission denied' as it | ||
# tries to copy a folder into a subfolder of itself, copying nothing, so 'cp' | ||
# manually. | ||
mkdir -p src/github.com/driskell/log-courier | ||
# 2>devnull to Hide 'cannot copy src into itself' | ||
cp -rf {.git,src} src/github.com/driskell/log-courier/ 2>/dev/null | ||
else | ||
mkdir -p src/github.com/driskell | ||
ln -nsf ../../.. src/github.com/driskell/log-courier | ||
fi | ||
|
||
# Fake a .git folder for downloaded archives to avoid 'go get' 'Stale checkout' | ||
if [ ! -d src/github.com/driskell/log-courier/.git ]; then | ||
mkdir src/github.com/driskell/log-courier/.git | ||
fi |
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,39 @@ | ||
Packaging Instructions | ||
====================== | ||
|
||
Install required package building packages. | ||
|
||
sudo apt-get install devscripts debhelper golang-go | ||
|
||
Run the following commands to get the source, create the required upstream | ||
archive, setup the source for debian building, and build the package. | ||
|
||
git clone https://github.com/driskell/log-courier | ||
tar -czf log-courier_VERSION.orig.tar.gz log-courier | ||
cd log-courier | ||
mv contrib/deb debian | ||
dpkg-buildpackage | ||
|
||
Packaging on Wheezy | ||
=================== | ||
|
||
The version of 'go' available in the golang-go package available in Debian | ||
wheezy is not recent enough to build this package. The following procedure | ||
can be followed as a workaround. | ||
|
||
First, grab the latest go from https://golang.org/ and install as standard in | ||
/usr/local/go (debian's current packaged version is not new enough). | ||
|
||
Add go to the PATH | ||
|
||
export PATH=/usr/local/go/bin:$PATH | ||
|
||
Build the packages as normal | ||
|
||
Building a Source DEB | ||
===================== | ||
|
||
Follow the instructions for a regular package using the following command | ||
instead of dpkg-buildpackage. | ||
|
||
debuild -S -sa |
Oops, something went wrong.