Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sshuttle
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pub
sshuttle
Commits
8ec6daf0
Commit
8ec6daf0
authored
Jan 20, 2013
by
Jim Wyllie
Committed by
Brian May
Sep 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a shell script to make a .deb package
parent
e2507f86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
make_deb
packaging/make_deb
+41
-0
No files found.
packaging/make_deb
0 → 100755
View file @
8ec6daf0
#!/bin/bash
#
# This script puts together a .deb package suitable for installing on an Ubuntu
# system
B
=
"/tmp/sshuttle/build"
if
[
!
-x
/usr/bin/dpkg
]
;
then
echo
'Unable to build: dpkg not found on system'
exit
1
fi
# Create the new directory structure
mkdir
-p
${
B
}
/etc/sshuttle/pre-start.d
mkdir
-p
${
B
}
/etc/sshuttle/post-stop.d
mkdir
-p
${
B
}
/usr/share/sshuttle
mkdir
-p
${
B
}
/usr/bin
mkdir
-p
${
B
}
/etc/init
mkdir
-p
${
B
}
/DEBIAN
# Copy over all of the files
cp
-r
../src/
*
${
B
}
/usr/share/sshuttle
cp
../src/sshuttle
${
B
}
/usr/bin
cp
-r
sshuttle.conf
${
B
}
/etc/init
cp
prefixes.conf
${
B
}
/etc/sshuttle
cp
tunnel.conf
${
B
}
/etc/sshuttle
# Copy the control file over, as well
cp
control
${
B
}
/DEBIAN
# Create the md5sum manifest
if
[
-x
/usr/bin/md5sum
]
;
then
cd
${
B
}
find
.
-type
f | egrep
-v
DEBIAN |
sed
-re
's/^..//'
| xargs
md5sum
>
${
B
}
/DEBIAN/md5sums
cd
${
OLDPWD
}
fi
# Build the debian package
VERSION
=
$(
egrep
-e
'^Version'
control |
sed
-re
's/^[^:]*: //'
)
dpkg
--build
${
B
}
./sshuttle-
${
VERSION
}
.deb
rm
-rf
${
B
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment