Page MenuHomeDevCentral

Install etckeeper on Ysul
Closed, ResolvedPublic

Related Objects

StatusSubtypeAssignedTask
Resolveddereckson

Event Timeline

Ysul
$ cd /home/dereckson/src/etckeeper
$ gmake install                                                                                                        
sed -i~ "s/Version:.*/Version: $(perl -e '$_=<>;m/\((.*?)(-.*)?\)/;print $1;' <debian/changelog)\"/" etckeeper
rm -f etckeeper~
mkdir -p /etc/etckeeper/ /var/cache/etckeeper/
cp -R *.d /etc/etckeeper/
install  daily /etc/etckeeper/daily
install  -m 0644 etckeeper.conf /etc/etckeeper/etckeeper.conf
mkdir -p /usr/local/bin
install  etckeeper /usr/local/bin/etckeeper
mkdir -p /usr/local/share/man/man8
install  -m 0644 etckeeper.8 /usr/local/share/man/man8/etckeeper.8
mkdir -p /usr/local/share/bash-completion/completions
install  -m 0644 bash_completion /usr/local/share/bash-completion/completions/etckeeper
mkdir -p /lib/systemd/system
install  -m 0644 systemd/etckeeper.service /lib/systemd/system/etckeeper.service
install  -m 0644 systemd/etckeeper.timer /lib/systemd/system/etckeeper.timer
python ./etckeeper-bzr/__init__.py install --root=  || echo "** bzr support not installed"
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/bzrlib
creating build/lib/bzrlib/plugins
creating build/lib/bzrlib/plugins/etckeeper
copying etckeeper-bzr/__init__.py -> build/lib/bzrlib/plugins/etckeeper
running install_lib
creating usr
creating usr/local
creating usr/local/lib
creating usr/local/lib/python2.7
creating usr/local/lib/python2.7/site-packages
creating usr/local/lib/python2.7/site-packages/bzrlib
creating usr/local/lib/python2.7/site-packages/bzrlib/plugins
creating usr/local/lib/python2.7/site-packages/bzrlib/plugins/etckeeper
copying build/lib/bzrlib/plugins/etckeeper/__init__.py -> usr/local/lib/python2.7/site-packages/bzrlib/plugins/etckeeper
byte-compiling usr/local/lib/python2.7/site-packages/bzrlib/plugins/etckeeper/__init__.py to __init__.pyc
running install_egg_info
Writing usr/local/lib/python2.7/site-packages/bzr_etckeeper-0.0.0-py2.7.egg-info
echo "** installation successful"
** installation successful
$ rm -rf /lib/systemd
$ mv /usr/local/share/man/man8/etckeeper.8 /usr/local/man/man8/
$ rm -rf /usr/local/share/man
Ysul — /etc
$ etckeeper init
Initialized empty Git repository in /etc/.git/
$ git commit -m "Initial import 2016-09-10"
etckeeper warning: hardlinked files could cause problems with git:
pam.d/ftp
pam.d/ftpd
[master (root-commit) 75f7876] Initial import 2016-09-10
 447 files changed, 48165 insertions(+)
[…]
Ysul — /usr/localetc
$ etckeeper init
Initialized empty Git repository in /usr/local/etc/.git/
$ git commit -m "Initial import 2016-09-10"
[…]
IMPORTANT: git add is still running
dereckson moved this task from Backlog to In progress on the User-Dereckson board.
dereckson moved this task from Backlog to Working on on the Servers board.

We've an issue to solve before:

root@ysul:/usr/local/etc # du -h -d 0
142G .

dereckson created subtask Restricted Maniphest Task.Sep 10 2016, 03:55

We're not really blocked by T1013:/usr/local/etc/.git/info/exclude ignores the problematic change.

dereckson closed subtask Restricted Maniphest Task as Resolved.Sep 11 2016, 00:13

Updated pkgng plugin and do some pkgng tests, all works fine.