Browse Source

Update hostapd, use create_ap releases instead of git

master
mid-kid 8 years ago
parent
commit
dc85a3fbe0
  1. 13
      satellites/create_ap-git.sat
  2. 16
      satellites/create_ap.sat
  3. 11
      satellites/functions/vcs/git.sh
  4. 6
      satellites/hostapd.sat

13
satellites/create_ap-git.sat

@ -1,13 +0,0 @@
import 'vcs/git'
name=create_ap
vcs_git "https://github.com/oblique/$name"
header_end
cd "$name"
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" "$name"
install -Dm644 -t "$dir_install/$dir_sysconfdir" "$name.conf"
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/bash-completion/$name" bash_completion
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:

16
satellites/create_ap.sat

@ -0,0 +1,16 @@
name=create_ap
version=0.4.6
update_url="https://github.com/oblique/$name/releases"
update_names="/archive/v$version.tar.gz"
dlextract "https://github.com/oblique/$name/archive/v$version.tar.gz" \
'4eaa1200204542670458cc7e9411b651'
header_end
cd "$name-$version"
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" "$name"
install -Dm644 -t "$dir_install/$dir_sysconfdir" "$name.conf"
install -Dm644 -t "$dir_install/$dir_prefix/$dir_datadir/bash-completion/$name" bash_completion
install -Dm644 -t "$dir_install/$dir_prefix/$dir_docdir/$name" README.md
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:

11
satellites/functions/vcs/git.sh

@ -1,11 +1,14 @@
vcs_git() {
local reponame="$(basename "$1")"; shift
local branch="$(basename "$1")"
local url="$1"; shift
local branch="$1"
local reponame="$(basename "$url")"
local dir="$dir_source/$name/$reponame"
mkdir -p "$dir"
if [ ! -d "$dir" ]; then
if [ ! -d "$dir/.git" ]; then
# Clone new repo
git clone --recursive --depth=1 $([ "$branch" ] && echo "-b $branch")"$1" "$dir"
git clone --recursive --depth=1 $([ "$branch" ] && echo "-b $branch") "$url" "$dir"
cd "$dir"
echo "$(git rev-parse @)" > "${dir}_rev_$_satname"
vcs_compile=true

6
satellites/hostapd.sat

@ -20,6 +20,12 @@ cd "$name"
cp defconfig .config
option rtlxdrv echo CONFIG_DRIVER_RTW=y >> .config
make
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" "$name" "${name}_cli"
install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/man1" "${name}_cli.1"
install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/man8" "${name}.8"
install -Dm644 -t "$dir_install/$dir_prefix/$dir_docdir/$name" \
$name.accept $name.conf $name.deny $name.eap_user $name.radius_clients \
$name.sim_db $name.vlan $name.wpa_psk wired.conf hlr_auc_gw.milenage_db
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:

Loading…
Cancel
Save