Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit d025b78

Browse files
committed
Merge branch 'master' of git://github.com/RainMark/openkeeper-cli into RainMark-master
2 parents 04c9f14 + 5479753 commit d025b78

22 files changed

Lines changed: 4897 additions & 306 deletions

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.cache
2+
*.log
3+
*.status
4+
*.o
5+
ok
6+
ok-start
7+
Makefile
8+
dialnetkeeper

Makefile

Lines changed: 0 additions & 25 deletions
This file was deleted.

Makefile.in

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
CC = gcc
2+
CFLAGS = -O2 -Wall
3+
LDFLAGS = -lcrypto
4+
SRC_DIR = src
5+
PREFIX ?= @prefix@
6+
BIN_DIR = $(PREFIX)/bin
7+
DATA_DIR = $(PREFIX)/share/openkeeper
8+
9+
$(SRC_DIR)/dialnetkeeper: $(SRC_DIR)/dialnetkeeper.o
10+
$(CC) $< $(LDFLAGS) -o $@
11+
12+
$(SRC_DIR)/%.o: $(SRC_DIR)%.c
13+
$(CC) -c $< $(CFLAGS)
14+
15+
.PHONY: clean install uninstall dist-clean
16+
17+
clean:
18+
rm -rf $(SRC_DIR)/*.o $(SRC_DIR)/dialnetkeeper
19+
rm -rf autom4te.cache config.log config.status ok ok-start
20+
21+
dist-clean: clean
22+
rm -rf Makefile
23+
24+
install:
25+
mkdir -p $(BIN_DIR)
26+
mkdir -p $(DATA_DIR)
27+
install -m 755 "$(SRC_DIR)"/dialnetkeeper "$(BIN_DIR)"
28+
install -m 755 ok "$(BIN_DIR)"
29+
install -m 755 ok-config "$(BIN_DIR)"
30+
install -m 755 ok-stop "$(BIN_DIR)"
31+
install -m 755 ok-start "$(BIN_DIR)"
32+
install -m 755 ok-connect "$(BIN_DIR)"
33+
install -m 644 pppoe.conf "$(DATA_DIR)"
34+
install -m 644 pap-secrets "$(DATA_DIR)"
35+
36+
uninstall:
37+
rm "$(BIN_DIR)"/dialnetkeeper -f
38+
rm "$(BIN_DIR)"/ok -f
39+
rm "$(BIN_DIR)"/ok-config -f
40+
rm "$(BIN_DIR)"/ok-stop -f
41+
rm "$(BIN_DIR)"/ok-connect -f
42+
rm "$(BIN_DIR)"/ok-start -f
43+
rm "$(DATA_DIR)" -rf

PKGBUILD/PKGBUILD

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.org

Lines changed: 18 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,30 @@
1-
#+TITLE: 重庆高校 Linux 上网客户端 openkeeper
2-
#+STARTUP: content
3-
4-
* 安装
5-
6-
** 安装依赖软件
7-
8-
*** 直接安装
9-
**** Arch Linux
10-
#+BEGIN_SRC
11-
$ yaourt -S openkeeper-cli
12-
or
13-
$ wget -c https://github.com/Eventide/openkeeper-cli/raw/master/release/openkeeper-cli-2.0-3-x86_64.pkg.tar
14-
$ sudo pacman -U openkeeper-cli-2.0-3-x86_64.pkg.tar
15-
#+END_SRC
16-
17-
**** Ubuntu
18-
#+BEGIN_SRC
19-
$ wget -c https://github.com/Eventide/openkeeper-cli/raw/master/release/openkeeper-cli-2.0-1.x86_64.deb
20-
$ sudo apt-get install gdebi-core
21-
$ sudo gdebi openkeeper-cli-2.0-1-x86_64.deb
22-
#+END_SRC
23-
24-
*** Fedora
25-
#+BEGIN_SRC
26-
$ wget -c https://github.com/Eventide/openkeeper-cli/raw/master/release/openkeeper-cli-2.0-1.x86_64.rpm
27-
$ sudo yum install openkeeper-cli-2.0-1-x86_64.rpm
28-
or
29-
$ sudo dnf install openkeeper-cli-2.0-1-x86_64.rpm
30-
#+END_SRC
31-
32-
**** openSUSE
33-
#+BEGIN_SRC
34-
$ sudo zypper addrepo http://download.opensuse.org/repositories/home:stawidy/openSUSE_Leap_42.1/home:stawidy.repo
35-
$ sudo zypper refresh
36-
$ sudo zypper install openkeeper-cli
37-
#+END_SRC
38-
39-
*** 源码安装
40-
注意:需要满足 rp-pppoe 、 openssl 依赖。
41-
#+BEGIN_SRC
1+
* 重庆高校 Linux 上网客户端 openkeeper
2+
** Introduction
3+
- Netkeeper for Linux.
4+
** Installation
5+
#+BEGIN_SRC sh
426
$ git clone https://github.com/Eventide/openkeeper-cli.git
437
$ cd openkeeper-cli
8+
$ ./configure --prefix=/usr/local
449
$ make
4510
$ sudo make install
4611
#+END_SRC
47-
48-
* 配置
49-
** 查看有线网口
50-
终端执行 =ip link= ,查看输出,有线网口名称一般为 eth0 , enp1s0 等.
51-
** 填写配置文件
52-
#+BEGIN_SRC
12+
** Usage
13+
- Configuration.
14+
#+BEGIN_SRC sh
5315
$ sudo ok-config
5416
#+END_SRC
55-
56-
* 拨号
57-
#+BEGIN_SRC
17+
- Connect.
18+
#+BEGIN_SRC sh
5819
$ sudo ok
5920
#+END_SRC
60-
* 下线
61-
#+BEGIN_SRC
21+
- Disconnect.
22+
#+BEGIN_SRC sh
6223
$ sudo ok-stop
6324
#+END_SRC
64-
65-
* 卸载
66-
#+BEGIN_SRC
67-
$ cd /tmp/openkeeper-cli && sudo make uninstall
25+
** Contributors
26+
#+BEGIN_SRC sh
27+
Eventide <nanjingzr@yahoo.com>
28+
RainMark <rain.by.zhou@gmail.com>
29+
Stawidy <duyizhaozj321@yahoo.com>
6830
#+END_SRC
69-
70-
* 问题反馈
71-
Email: rain_of_mem@163.com\\
72-
Email: nanjingzr@yahoo.com

0 commit comments

Comments
 (0)