mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Adapt scripts to use the new licensing scheme
This commit is contained in:
parent
60269a1236
commit
b3398df529
6 changed files with 13 additions and 10 deletions
|
|
@ -145,7 +145,8 @@ LIST_XML = doc/snapraid.xml doc/snapraid_log.xml $(patsubst %, doc/snapraid-%.xm
|
|||
|
||||
EXTRA_DIST = \
|
||||
autogen.sh autover.sh \
|
||||
README AUTHORS HISTORY INSTALL COPYING TODO CHECK INSTALL.windows \
|
||||
README AUTHORS HISTORY INSTALL TODO CHECK INSTALL.windows \
|
||||
COPYING LICENSES/GPL-2.0 LICENSES/GPL-3.0 \
|
||||
$(LIST_D) \
|
||||
$(LIST_MAN) \
|
||||
$(LIST_TXT) \
|
||||
|
|
@ -166,7 +167,6 @@ EXTRA_DIST = \
|
|||
configure.windows-x86 configure.windows-x64 snapraid.conf.example.windows \
|
||||
acinclude.m4 \
|
||||
tommyds/LICENSE \
|
||||
raid/COPYING \
|
||||
raid/test/Makefile \
|
||||
raid/test/fulltest.c \
|
||||
raid/test/selftest.c \
|
||||
|
|
@ -1222,7 +1222,7 @@ distwindows-x86: $(DISTWIN)
|
|||
todos < README > tmp/readme.txt
|
||||
todos < AUTHORS > tmp/authors.txt
|
||||
todos < HISTORY > tmp/history.txt
|
||||
todos < COPYING > tmp/copying.txt
|
||||
todos < LICENSES/GPL-3.0 > tmp/copying.txt
|
||||
cd tmp && zip -r ../$(PACKAGE)-$(VERSION)-windows-x86.zip *
|
||||
rm -r tmp
|
||||
|
||||
|
|
@ -1235,6 +1235,6 @@ distwindows-x64: $(DISTWIN)
|
|||
todos < README > tmp/readme.txt
|
||||
todos < AUTHORS > tmp/authors.txt
|
||||
todos < HISTORY > tmp/history.txt
|
||||
todos < COPYING > tmp/copying.txt
|
||||
todos < LICENSES/GPL-3.0 > tmp/copying.txt
|
||||
cd tmp && zip -r ../$(PACKAGE)-$(VERSION)-windows-x64.zip *
|
||||
rm -r tmp
|
||||
|
|
|
|||
|
|
@ -50,7 +50,8 @@ make install DESTDIR="../${PKG_ROOT}"
|
|||
|
||||
# Add example config and docs
|
||||
mkdir -p "../${PKG_ROOT}/usr/share/doc/@PACKAGE@"
|
||||
cp @PACKAGE@.conf.example COPYING AUTHORS HISTORY README "../${PKG_ROOT}/usr/share/doc/@PACKAGE@/"
|
||||
cp @PACKAGE@.conf.example AUTHORS HISTORY README "../${PKG_ROOT}/usr/share/doc/@PACKAGE@/"
|
||||
cp LICENSES/GPL-3.0 "../${PKG_ROOT}/usr/share/doc/@PACKAGE@/COPYING"
|
||||
|
||||
cd ..
|
||||
|
||||
|
|
@ -67,7 +68,7 @@ cd ${PKG_ROOT}
|
|||
echo "Create .MTREE"
|
||||
bsdtar -czf .MTREE --format=mtree --options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' .PKGINFO usr
|
||||
|
||||
# Build the .deb package
|
||||
# Build the .pkg package
|
||||
echo "Building .PKG package..."
|
||||
tar --owner=0 --group=0 -cvf - .PKGINFO .MTREE usr | zstd -c -z -q - > ../${PKG_NAME}-${VERSION}-1-x86_64.pkg.tar.zst
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,8 @@ make install DESTDIR="../${PKG_ROOT}"
|
|||
|
||||
# Add example config and docs
|
||||
mkdir -p "../${PKG_ROOT}/usr/share/doc/@PACKAGE@"
|
||||
cp @PACKAGE@.conf.example COPYING AUTHORS HISTORY README "../${PKG_ROOT}/usr/share/doc/@PACKAGE@/"
|
||||
cp @PACKAGE@.conf.example AUTHORS HISTORY README "../${PKG_ROOT}/usr/share/doc/@PACKAGE@/"
|
||||
cp LICENSES/GPL-3.0 "../${PKG_ROOT}/usr/share/doc/@PACKAGE@/COPYING"
|
||||
|
||||
cd ..
|
||||
|
||||
|
|
|
|||
|
|
@ -26,5 +26,5 @@ package() {
|
|||
install -Dm644 snapraid.conf.example "$pkgdir/usr/share/doc/$pkgname/snapraid.conf.example"
|
||||
|
||||
# Arch Policy: License must also be in the license directory
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
install -Dm644 LICENSES/GPL-3.0 "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -99,8 +99,9 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
|
|||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
COPYING AUTHORS HISTORY README snapraid.conf.example \
|
||||
AUTHORS HISTORY README snapraid.conf.example \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a LICENSES/GPL-3.0 $PKG/usr/doc/$PRGNAM-$VERSION/COPYING
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ rm -rf %{buildroot}
|
|||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%license LICENSES/GPL-3.0
|
||||
%doc AUTHORS HISTORY README @PACKAGE@.conf.example
|
||||
%{_bindir}/@PACKAGE@
|
||||
%{_mandir}/man1/@PACKAGE@.1*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue