summaryrefslogtreecommitdiff
path: root/check-non-free
diff options
context:
space:
mode:
Diffstat (limited to 'check-non-free')
-rwxr-xr-xcheck-non-free89
1 files changed, 0 insertions, 89 deletions
diff --git a/check-non-free b/check-non-free
deleted file mode 100755
index 7022469..0000000
--- a/check-non-free
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/bash
-# check-nonfree
-# Copyright 2010 Joshua Ismael Haase Hernández
-# Copyright © 2011 Joseph Graham
-
-# ---------- GNU General Public License 3 ----------
-
-# This file is part of Parabola.
-
-# Parabola is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-
-# Parabola is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with Parabola. If not, see <http://www.gnu.org/licenses/>.
-
-# Set this to the URL of the blacklist.
-blacklist_url="http://repo.parabolagnulinux.org/docs/blacklist.txt"
-
-# Make a temproary directory and go to it.
-tempdir=$(mktemp -d)
-cd ${tempdir}
-
-#Run a sanity check
-which pacman wget >/dev/null 2>/dev/null ||
-{
- echo "Cannot find pacman or wget, exiting"
- exit 1
-}
-
-# Download the blacklist.
-echo "Downloading the blacklist of proprietary software packages."
-echo
-wget ${blacklist_url} 2>/dev/null ||
-{
- echo "Download failed, exiting"
- exit 1
-}
-
-declare -a exists
-
-for package in $(cut -d: -f1 blacklist.txt)
-do
- # Check if the package is in pacman's database.
- if pacman -Q ${package} >/dev/null 2>/dev/null
- then
- # Add this package to the array of blacklited packages that have been
- # found in the system.
- exists[${#exists[@]}]=${package}
- fi
-done
-
-# Check if no proprietray software was found.
-if (( ! ${#exists[@]} ))
-then
- echo "No proprietary software has been found on your system."
-
- # Exit.
- exit 0
-
-# Check if one proprietary software package was found.
-elif (( ${#exists[@]} = 1 ))
-then
- echo "This proprietary package has been found on your system:"
-
-# Multiple proprietary software packages have been found.
-else
- echo "These proprietary packages have been found on your system:"
-fi
-
-# Echo a blank line as a seperator.
-echo
-
-# Print all the proprietary software packages that have been found, seperated
-# by newlines.
-for package in ${exists[@]}
-do
- echo ${package}
-done
-
-rm -rf $tempdir
-
-exit 0