diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-17 19:24:48 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-17 19:24:48 -0400 |
commit | 827e305df0f565d7da844684290323a75bf081a6 (patch) | |
tree | 9753469d58a11b434d8da109c00a23c0e721a52d /yf | |
parent | d42f5c6ab02a861ef548ae12fe403f61e2b02e4f (diff) | |
parent | 1d5db10302f0a0517c022fae4b6a66862eb7e2cf (diff) |
Merge branch 'lukeshu/archlinux+xbs+merge-parabola' into lukeshu/archlinux+xbs+db-import
Diffstat (limited to 'yf')
-rw-r--r-- | yf/PKGBUILD | 28 | ||||
-rw-r--r-- | yf/your-freedom.install | 32 |
2 files changed, 60 insertions, 0 deletions
diff --git a/yf/PKGBUILD b/yf/PKGBUILD new file mode 100644 index 0000000..e737482 --- /dev/null +++ b/yf/PKGBUILD @@ -0,0 +1,28 @@ +# 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 nonfree package known to date." +arch=('any') +url="https://parabolagnulinux.org" +license=('GPL') +groups=('base') +install=${pkgname}.install +source=() +md5sums=() +noextract=() + +build() { + cd ${srcdir} + source ~/repm/local_config + install -d ${pkgdir}/usr/share/doc/${pkgname} + install -m644 $blacklist $whitelist ${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/yf/your-freedom.install b/yf/your-freedom.install new file mode 100644 index 0000000..731a575 --- /dev/null +++ b/yf/your-freedom.install @@ -0,0 +1,32 @@ + +pre_install() { + cat <<EOM + == IMPORTANT NOTICE == + + This package will help you identify nonfree 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 nonfree package is identified, later updates will ask + you for it's removal. + + Have in mind that, if you want to retain certain nonfree 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 nonfree 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: |