diff options
Diffstat (limited to 'libre/your-freedom')
-rw-r--r-- | libre/your-freedom/PKGBUILD | 29 | ||||
-rw-r--r-- | libre/your-freedom/your-freedom.install | 32 |
2 files changed, 61 insertions, 0 deletions
diff --git a/libre/your-freedom/PKGBUILD b/libre/your-freedom/PKGBUILD new file mode 100644 index 000000000..a7f25c7bb --- /dev/null +++ b/libre/your-freedom/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Parabola Project <dev@list.parabolagnulinux.org> +pkgname=your-freedom +pkgver=$(LC_ALL=C date -u +%Y%m%d) +pkgrel=1 +pkgdesc="This package conflicts with every unfree package known to date." +arch=('any') +url="https://parabolagnulinux.org" +license=('GPL') +groups=('base') +install=${pkgname}.install +source=() +md5sums=() +noextract=() + +build() { + cd ${srcdir} + wget http://repo.parabolagnulinux.org/docs/blacklist.txt + wget http://repo.parabolagnulinux.org/docs/whitelist.txt + install -d ${pkgdir}/usr/share/doc/${pkgname} + install -m644 {black,white}list.txt ${pkgdir}/usr/share/doc/${pkgname}/ +} + +package() { + conflicts=($(cut -d: -f1,2 ${pkgdir}/usr/share/doc/${pkgname}/blacklist.txt | \ + sed "s/:$//" | \ + grep -v ":" | \ + sort -u + )) +} diff --git a/libre/your-freedom/your-freedom.install b/libre/your-freedom/your-freedom.install new file mode 100644 index 000000000..49ae04510 --- /dev/null +++ b/libre/your-freedom/your-freedom.install @@ -0,0 +1,32 @@ + +pre_install() { + cat <<EOM + == IMPORTANT NOTICE == + + This package will help you identify unfree packages that are installed + on your system at the time of it's installation, as well as protecting + you from (accidentally) installing them. + + Also, if any other unfree package is identified, later updates will ask + you for it's removal. + + Have in mind that, if you want to retain certain unfree packages + installed on your system, you'll have to remove your-freedom :) + + If you find out any of the following: + * Cascade package removal due to unfree dependencies, + * Your-freedom conflicting with a *-libre package, + * Etc. + + Please report back to the Parabola Project on the usual channels: + * http://bugs.parabolagnulinux.org + * irc://freenode.net/#parabola + * mailto:dev@list.parabolagnulinux.org +EOM +} + +pre_upgrade() { + pre_install +} + +# vim:set ts=2 sw=2 et: |