Skip to content

Commit c38f1d8

Browse files
author
An-Cheng Huang
committed
initial import of systel-level scripts from fairfield/xorp and
ofr-eureka/rl-system. (this is the "mess-with-your-system-config" package.)
0 parents  commit c38f1d8

23 files changed

+2625
-0
lines changed

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
*~
2+
.*.swp
3+
/aclocal.m4
4+
/autom4te.cache
5+
/build-stamp
6+
/ChangeLog
7+
/config
8+
/config.log
9+
/config.guess
10+
/config.status
11+
/config.sub
12+
/configure
13+
/debian/files
14+
/debian/vyatta-cfg-system
15+
/INSTALL
16+
/Makefile.in
17+
/Makefile
18+
/scripts/install-system
19+

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

COPYING

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Package: vyatt-cfg-system
3+
*
4+
* **** License ****
5+
* Version: VPL 1.0
6+
*
7+
* The contents of this file are subject to the Vyatta Public License
8+
* Version 1.0 ("License"); you may not use this file except in
9+
* compliance with the License. You may obtain a copy of the License at
10+
* http://www.vyatta.com/vpl
11+
*
12+
* Software distributed under the License is distributed on an "AS IS"
13+
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14+
* the License for the specific language governing rights and limitations
15+
* under the License.
16+
*
17+
* This code was originally developed by Vyatta, Inc.
18+
* Portions created by Vyatta are Copyright (C) "YEAR" Vyatta, Inc.
19+
* All Rights Reserved.
20+
*
21+
22+
* Date: 2007
23+
* Description: Vyatta system-level configuration templates/scripts
24+
*
25+
* **** End License ****
26+
*
27+
*/

Makefile.am

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
bin_SCRIPTS =
2+
sbin_SCRIPTS =
3+
4+
bin_SCRIPTS += scripts/progress-indicator
5+
bin_SCRIPTS += scripts/vyatta-functions
6+
sbin_SCRIPTS += scripts/rl-system.init
7+
sbin_SCRIPTS += scripts/install-system
8+
sbin_SCRIPTS += scripts/quick-install
9+
sbin_SCRIPTS += scripts/standalone_root_pw_reset
10+

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
see http://www.vyatta.com/news/

README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This package has the Vyatta system-level configuration templates and scripts.

configure.ac

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Process this file with autoconf to produce a configure script.
2+
AC_PREREQ(2.59)
3+
4+
m4_define([VERSION_ID], [m4_esyscmd([
5+
if test -f .version ; then
6+
head -n 1 .version | tr -d \\n
7+
else
8+
echo -n 2.4
9+
fi])])
10+
AC_INIT([vyatta-cfg-system], VERSION_ID, [[email protected]])
11+
12+
test -n "$VYATTA_VERSION" || VYATTA_VERSION=$PACKAGE_VERSION
13+
14+
AC_CONFIG_AUX_DIR([config])
15+
AM_INIT_AUTOMAKE([gnu no-dist-gzip dist-bzip2 subdir-objects])
16+
AC_PREFIX_DEFAULT([/opt/vyatta])
17+
18+
AC_ARG_ENABLE([nostrip],
19+
AC_HELP_STRING([--enable-nostrip],
20+
[include -nostrip option during packaging]),
21+
[NOSTRIP=-nostrip], [NOSTRIP=])
22+
23+
AC_CONFIG_FILES(
24+
[Makefile]
25+
[scripts/install-system])
26+
27+
AC_SUBST(NOSTRIP)
28+
29+
AC_OUTPUT
30+

debian/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
The Debian Package vyatta-cfg-system
2+
----------------------------
3+
4+
This package has the Vyatta systel-level configuration templates and scripts.
5+
6+
-- An-Cheng Huang <[email protected]> Mon, 1 Oct 2007

debian/autogen.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
3+
4+
if [ -d .git ] ; then
5+
# generate GNU/Debian format ChangeLog from git log
6+
7+
rm -f ChangeLog
8+
9+
if which git2cl >/dev/null ; then
10+
git-log --pretty --numstat --summary | git2cl >> ChangeLog
11+
else
12+
git-log --pretty=short >> ChangeLog
13+
fi
14+
15+
# append repository reference
16+
17+
url=` git repo-config --get remote.origin.url`
18+
test "x$url" = "x" && url=`pwd`
19+
20+
branch=`git-branch --no-color | sed '/^\* /!d; s/^\* //'`
21+
test "x$branch" = "x" && branch=master
22+
23+
sha=`git log --pretty=oneline --no-color -n 1 | cut -c-8`
24+
test "x$sha" = "x" && sha=00000000
25+
26+
echo "$url#$branch-$sha" >> ChangeLog
27+
28+
fi
29+
30+
rm -rf config
31+
rm -f aclocal.m4 config.guess config.statusconfig.sub configure INSTALL
32+
33+
autoreconf --force --install
34+
35+
rm -f config.sub config.guess
36+
ln -s /usr/share/misc/config.sub .
37+
ln -s /usr/share/misc/config.guess .

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
vyatta-cfg-system (0.1) unstable; urgency=low
2+
3+
* Initial Release.
4+
5+
-- An-Cheng Huang <[email protected]> Thu, 18 Oct 2007 11:03:18 -0700

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5

debian/control

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Source: vyatta-cfg-system
2+
Section: contrib/net
3+
Priority: extra
4+
Maintainer: An-Cheng Huang <[email protected]>
5+
Build-Depends: debhelper (>= 5), autotools-dev
6+
Standards-Version: 3.7.2
7+
8+
Package: vyatta-cfg-system
9+
Architecture: all
10+
Depends: bash (>= 3.1),
11+
sed (>= 4.1.5),
12+
perl (>= 5.8.8),
13+
procps (>= 1:3.2.7-3),
14+
coreutils (>= 5.97-5.3),
15+
vyatta-cfg
16+
Suggests: util-linux (>= 2.13-5),
17+
net-tools,
18+
ethtool,
19+
ncurses-bin (>= 5.5-5),
20+
ntpdate
21+
Description: Vyatta system-level configuration templates/scripts
22+
Vyatta system-level configuration templates and scripts.

debian/copyright

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
This package was debianized by An-Cheng Huang <[email protected]> on
2+
Thu, 18 Oct 2007 11:03:18 -0700.
3+
4+
It's original content from the GIT repository <http://vyatt.com/git/vyatta-cfg-system>
5+
6+
Upstream Author:
7+
8+
9+
10+
Copyright:
11+
12+
Copyright (C) 2007 Vyatta, Inc.
13+
All Rights Reserved.
14+
15+
License:
16+
17+
The contents of this package are subject to the Vyatta Public License
18+
Version 1.0 ("License"); you may not use this file except in
19+
compliance with the License. You may obtain a copy of the License at
20+
http://www.vyatta.com/vpl
21+
22+
Software distributed under the License is distributed on an "AS IS"
23+
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
24+
the License for the specific language governing rights and limitations
25+
under the License.
26+
27+
This code was originally developed by Vyatta, Inc.
28+
Portions created by Vyatta are Copyright (C) 2007 Vyatta, Inc.
29+
30+
On Debian systems, the complete text of the GNU General
31+
Public License can be found in `/usr/share/common-licenses/GPL'.
32+
33+
The Debian packaging is (C) 2007, An-Cheng Huang <[email protected]> and
34+
is licensed under the GPL, see above.

debian/docs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NEWS
2+
README

debian/linda

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Tag: file-in-opt

debian/lintian

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
vyatta-cfg-system: file-in-unusual-dir
2+
vyatta-cfg-system: dir-or-file-in-opt

debian/rules

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
# Sample debian/rules that uses debhelper.
4+
# This file was originally written by Joey Hess and Craig Small.
5+
# As a special exception, when this file is copied by dh-make into a
6+
# dh-make output file, you may use that output file without restriction.
7+
# This special exception was added by Craig Small in version 0.37 of dh-make.
8+
9+
# Uncomment this to turn on verbose mode.
10+
#export DH_VERBOSE=1
11+
12+
13+
# These are used for cross-compiling and for saving the configure script
14+
# from having to guess our platform (since we know it already)
15+
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
16+
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17+
PACKAGE=vyatta-cfg-system
18+
PKGDIR=$(CURDIR)/debian/$(PACKAGE)
19+
20+
CFLAGS = -Wall -g
21+
22+
configure = ./configure
23+
configure += --host=$(DEB_HOST_GNU_TYPE)
24+
configure += --build=$(DEB_BUILD_GNU_TYPE)
25+
configure += --prefix=/opt/vyatta
26+
configure += --mandir=\$${prefix}/share/man
27+
configure += --infodir=\$${prefix}/share/info
28+
configure += CFLAGS="$(CFLAGS)"
29+
configure += LDFLAGS="-Wl,-z,defs"
30+
31+
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
32+
CFLAGS += -O0
33+
else
34+
CFLAGS += -O2
35+
endif
36+
37+
configure: configure.ac Makefile.am
38+
chmod +x debian/autogen.sh
39+
debian/autogen.sh
40+
41+
config.status: configure
42+
dh_testdir
43+
rm -f config.cache
44+
$(configure)
45+
46+
build: build-stamp
47+
48+
build-stamp: config.status
49+
dh_testdir
50+
$(MAKE)
51+
touch $@
52+
53+
clean: clean-patched
54+
55+
# Clean everything up, including everything auto-generated
56+
# at build time that needs not to be kept around in the Debian diff
57+
clean-patched:
58+
dh_testdir
59+
dh_testroot
60+
if test -f Makefile ; then $(MAKE) clean distclean ; fi
61+
rm -f build-stamp
62+
rm -f config.status config.sub config.guess config.log
63+
rm -f aclocal.m4 configure Makefile.in Makefile INSTALL
64+
rm -rf config
65+
dh_clean
66+
67+
install: build
68+
dh_testdir
69+
dh_testroot
70+
dh_clean -k
71+
dh_installdirs
72+
73+
$(MAKE) DESTDIR=$(PKGDIR) install
74+
75+
install -D --mode=0644 debian/lintian $(PKGDIR)/usr/share/lintian/overrides/$(PACKAGE)
76+
install -D --mode=0644 debian/linda $(PKGDIR)/usr/share/linda/overrides/$(PACKAGE)
77+
78+
# Build architecture-independent files here.
79+
binary-indep: build install
80+
dh_testdir
81+
dh_testroot
82+
dh_installchangelogs ChangeLog
83+
dh_installdocs
84+
dh_install
85+
dh_installdebconf
86+
dh_link
87+
dh_strip
88+
dh_compress
89+
dh_fixperms
90+
dh_installdeb
91+
dh_gencontrol
92+
dh_md5sums
93+
dh_builddeb
94+
95+
# Build architecture-dependent files here.
96+
binary-arch: build install
97+
# This is an architecture independent package
98+
# so; we have nothing to do by default.
99+
100+
binary: binary-indep binary-arch
101+
.PHONY: build clean binary-indep binary-arch binary install

0 commit comments

Comments
 (0)