1
0
forked from ports/opt

git: add git daemon script

This commit is contained in:
Thomas Penteker 2017-07-28 14:34:14 +02:00
parent d938f7b610
commit e1fcbb56ad
5 changed files with 52 additions and 43 deletions

View File

@ -2,6 +2,8 @@ drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/ports/
drwxr-xr-x root/root etc/ports/drivers/
-rwxr-xr-x root/root etc/ports/drivers/git
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/gitd
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/git
@ -206,30 +208,30 @@ drwxr-xr-x root/root usr/lib/git-core/mergetools/
-rw-r--r-- root/root usr/lib/git-core/mergetools/winmerge
-rw-r--r-- root/root usr/lib/git-core/mergetools/xxdiff
drwxr-xr-x root/root usr/lib/perl5/
drwxr-xr-x root/root usr/lib/perl5/5.24/
drwxr-xr-x root/root usr/lib/perl5/5.24/linux-thread-multi/
drwxr-xr-x root/root usr/lib/perl5/5.22/
drwxr-xr-x root/root usr/lib/perl5/5.22/linux-thread-multi/
drwxr-xr-x root/root usr/lib/perl5/site_perl/
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.24/
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Error.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git.pm
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.24/Git/
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/I18N.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/IndexInfo.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/SVN.pm
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.24/Git/SVN/
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/SVN/Editor.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/SVN/Fetcher.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/SVN/GlobSpec.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/SVN/Log.pm
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.24/Git/SVN/Memoize/
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/SVN/Memoize/YAML.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/SVN/Migration.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/SVN/Prompt.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/SVN/Ra.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.24/Git/SVN/Utils.pm
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.24/linux-thread-multi/
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.24/linux-thread-multi/auto/
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.24/linux-thread-multi/auto/Git/
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.22/
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Error.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git.pm
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.22/Git/
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/I18N.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/IndexInfo.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/SVN.pm
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.22/Git/SVN/
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/SVN/Editor.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/SVN/Fetcher.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/SVN/GlobSpec.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/SVN/Log.pm
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.22/Git/SVN/Memoize/
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/SVN/Memoize/YAML.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/SVN/Migration.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/SVN/Prompt.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/SVN/Ra.pm
-r--r--r-- root/root usr/lib/perl5/site_perl/5.22/Git/SVN/Utils.pm
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.22/linux-thread-multi/
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.22/linux-thread-multi/auto/
drwxr-xr-x root/root usr/lib/perl5/site_perl/5.22/linux-thread-multi/auto/Git/
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/git-core/
drwxr-xr-x root/root usr/share/git-core/templates/

View File

@ -1,3 +1,4 @@
07297ac00d466c0c7c94afeaa16bc903 git
e10ede8b80a2c987d04ee376534cb7e1 git-2.13.3.tar.xz
33caeed94ace70f1ff3342172503d895 git-manpages-2.13.3.tar.xz
3de52107e3cf0fae68bc0798add324dd gitd.rc

View File

@ -1,7 +1,8 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/Xtv8roKtY+Xe9Bz9kJpXpywznWtLVTyrMNHWbCll8+cjRM+iwf7rLbAwSdHZhW41szfhv0rjjxRamegDR3O8gE=
SHA256 (Pkgfile) = a869dc8f446c58b196950e7cf91f124421c323c5949feef1e5bf05e81da089e7
SHA256 (.footprint) = 3e9b602bb187c5d34ee850de16c205e33c231ba8fa9d5edb5621d40a129569a2
RWSE3ohX2g5d/WHpu8p8Xf9jRLvSVkceBccLO6NabcOQikKVmRnz8/Mc9I+6kK5P/ge04U1ou7c1gR1KdHkb65lG4O831yEajAM=
SHA256 (Pkgfile) = 08ba3aaeb54175ec1cd793b7d02687ada02d0697ac08eae110543e5a2c82c936
SHA256 (.footprint) = c831b52a1cc5012ecbc1dc8e2c3e8a62634e53199563e9d5fe45d0f81f732d9d
SHA256 (git-2.13.3.tar.xz) = 91aa23be428f67eb19616f43fa0229d567e9acf4f08fba33eb0b627e4d323e62
SHA256 (git-manpages-2.13.3.tar.xz) = 1128db0302a41b55132bfd507863a7921b995d9ad308396ff2c4ca91177481c2
SHA256 (git) = 432108f8c5f5abeb429cab25181b43ee42060d46fa7fbe7e4b02790b56f61e8a
SHA256 (gitd.rc) = 3a7a13fcfbf493890e58a3c1c8a71de08518b35fa6fe6109120a03cd8beeac25

View File

@ -9,30 +9,32 @@ name=git
version=2.13.3
release=1
source=(https://www.kernel.org/pub/software/scm/git/git-{,manpages-}$version.tar.xz
git)
git gitd.rc)
build() {
cd $name-$version
cd $name-$version
# install Error.pm. this pretty much sucks, but i'm too lazy to
# investigate whether there's a better way.
sed -i -e '47d' -e '49d' perl/Makefile.PL
# install Error.pm. this pretty much sucks, but i'm too lazy to
# investigate whether there's a better way.
sed -i -e '47d' -e '49d' perl/Makefile.PL
make CFLAGS="$CFLAGS" prefix=/usr gitexecdir=/usr/lib/git-core \
INSTALLSITEMAN3DIR=/usr/share/man/man3 DESTDIR=$PKG install
make CFLAGS="$CFLAGS" prefix=/usr gitexecdir=/usr/lib/git-core \
INSTALLSITEMAN3DIR=/usr/share/man/man3 DESTDIR=$PKG install
cd $SRC
cd $SRC
for i in man*; do
install -d $PKG/usr/share/man/$i
install -m 644 $i/* $PKG/usr/share/man/$i;
done
for i in man*; do
install -d $PKG/usr/share/man/$i
install -m 644 $i/* $PKG/usr/share/man/$i;
done
find $PKG \( -name perllocal.pod -o -name .packlist \) -delete
rm -rf $PKG/usr/share/{locale,gitk}
find $PKG \( -name perllocal.pod -o -name .packlist \) -delete
rm -rf $PKG/usr/share/{locale,gitk}
# install the git ports driver
install -m 755 -d $PKG/etc/ports/drivers
install -m 755 $SRC/git $PKG/etc/ports/drivers/git
# install the git ports driver
install -d $PKG/etc/ports/drivers
install $SRC/git $PKG/etc/ports/drivers/git
install -D $SRC/gitd.rc $PKG/etc/rc.d/gitd
}

View File

@ -10,5 +10,8 @@ POST-INSTALL
Otherwise they will just abort with an error saying:
exec: wish: not found
2. If you want to run gitd for serving git repos, make sure to create a
dedicated user like, first.
PRECAUTION