-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from netzint/update-zeroing-pv
Update zeroing pv
- Loading branch information
Showing
6 changed files
with
53 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# pv build environment | ||
|
||
PVNAME="pv" | ||
PVURL="https://github.com/icetee/$PVNAME" | ||
PVSRCDIR="$SRC/$PVNAME" | ||
PVBIN="$PVSRCDIR/$PVNAME" |
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,3 @@ | ||
# ctorrent | ||
|
||
file /usr/bin/pv @@PVBIN@@ 755 0 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
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,27 @@ | ||
#!/bin/bash | ||
# | ||
# download and build ctorrent | ||
|
||
# read build environment | ||
for i in build/conf.d/*; do source "$i" || exit 1; done | ||
|
||
# check for binary | ||
if [ -s "$PVBIN" -a -x "$PVBIN" ]; then | ||
echo "pv binary exists, skipping build." | ||
|
||
else | ||
# download | ||
echo "Cloning $PVNAME source ..." | ||
[ -d "$PVSRCDIR" ] && rm -rf "$PVSRCDIR" | ||
cd "$SRC" | ||
git clone "$PVURL" || exit 1 | ||
# compile | ||
echo "Configuring $PVNAME ..." | ||
cd "$PVSRCDIR" || exit 1 | ||
|
||
./configure || exit 1 | ||
echo "Compiling $PVNAME ..." | ||
cd "$PVSRCDIR" || exit 1 | ||
make || exit 1 | ||
strip "$PVBIN" || exit 1 | ||
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
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