summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZee Eichel <zee@dracos-linux.org>2019-05-11 19:30:02 +0700
committerZee Eichel <zee@dracos-linux.org>2019-05-11 19:30:02 +0700
commit2024604099f9573517a32e24ac1297183a8cfa05 (patch)
treed2381fe5165eb2b714d6cd96edcef5b8a7515cfc
parent25a845a305dd549e3d1e7fc3fbf4f9fc64980d18 (diff)
downloaddemit.main-core-git.repo-2024604099f9573517a32e24ac1297183a8cfa05.tar.gz
demit.main-core-git.repo-2024604099f9573517a32e24ac1297183a8cfa05.tar.bz2
demit.main-core-git.repo-2024604099f9573517a32e24ac1297183a8cfa05.zip
bluez,cups,fakeroot,make-ca,pacman
-rw-r--r--bluez/PKGBUILD-BLUEZ50
-rw-r--r--cups/PKGBUILD-CUPS55
-rw-r--r--cups/cups.install.sh9
-rw-r--r--fakeroot/PKGBUILD-FAKEROOT30
-rw-r--r--fakeroot/fakeroot-fixes.patch20
-rw-r--r--make-ca/PKGBUILD-MAKECA22
-rw-r--r--make-ca/make-ca.install.sh17
-rw-r--r--pacman/PKGBUILD-PACMAN76
-rw-r--r--pacman/makepkg.sh.in.dr0-1.patch30
-rw-r--r--pacman/pacman.install.sh3
-rw-r--r--pacman/pacman.sh14
-rw-r--r--pacman/pkgbuild-dracOslinux-keyChain.sh18
12 files changed, 344 insertions, 0 deletions
diff --git a/bluez/PKGBUILD-BLUEZ b/bluez/PKGBUILD-BLUEZ
new file mode 100644
index 0000000..7f87fd4
--- /dev/null
+++ b/bluez/PKGBUILD-BLUEZ
@@ -0,0 +1,50 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+
+pkgname=bluez
+pkgver=5.50
+pkgrel=1
+pkgdesc='The BlueZ package contains the Bluetooth protocol stack for Linux.'
+arch=(x86_64)
+license=('GPL2')
+url="kernel.org"
+source=('https://www.kernel.org/pub/linux/bluetooth/bluez-5.50.tar.xz')
+sha256sums=(5ffcaae18bbb6155f1591be8c24898dc12f062075a40b538b745bfd477481911)
+depends=('dbus>=1.12.12' 'glib>=2.58.3' 'libical>=3.0.4')
+
+build() {
+ cd "$pkgname"-"$pkgver"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-library &&
+ make
+ }
+
+package() {
+ cd "$pkgname"-"$pkgver"
+ make DESTDIR="$pkgdir/" install
+ mkdir $pkgdir/usr/sbin/
+ ln -srf $pkgdir/usr/libexec/bluetooth/bluetoothd $pkgdir/usr/sbin/
+ install -v -dm755 $pkgdir/etc/bluetooth &&
+ install -v -m644 src/main.conf $pkgdir/etc/bluetooth/main.conf
+ mkdir -p $pkgdir/etc/bluetooth
+
+cat > $pkgdir/etc/bluetooth/rfcomm.conf << "EOF"
+# Start rfcomm.conf
+# Set up the RFCOMM configuration of the Bluetooth subsystem in the Linux kernel.
+# Use one line per command
+# See the rfcomm man page for options
+
+
+# End of rfcomm.conf
+EOF
+
+cat > $pkgdir/etc/bluetooth/uart.conf << "EOF"
+# Start uart.conf
+# Attach serial devices via UART HCI to BlueZ stack
+# Use one line per device
+# See the hciattach man page for options
+
+# End of uart.conf
+EOF
+}
diff --git a/cups/PKGBUILD-CUPS b/cups/PKGBUILD-CUPS
new file mode 100644
index 0000000..41224a5
--- /dev/null
+++ b/cups/PKGBUILD-CUPS
@@ -0,0 +1,55 @@
+# Maintainer: Zee Eichel <zee@dracos-linux.org>
+
+pkgname=cups
+pkgver=2.2.10
+pkgrel=1
+pkgdesc="The Common Unix Printing System (CUPS) "
+arch=(x86_64)
+url="https://github.com/apple/cups/"
+license=('GPL2')
+provides=("${pkgname}")
+conflicts=("${pkgname}")
+depends=('gnutls' 'linux-pam')
+source=("https://github.com/apple/cups/releases/download/v2.2.10/cups-2.2.10-source.tar.gz")
+sha256sums=("77c8b2b3bb7fe8b5fbfffc307f2c817b2d7ec67b657f261a1dd1c61ab81205bb")
+
+build() {
+ cd "$pkgname"-"$pkgver"
+ sed -i 's:555:755:g;s:444:644:g' Makedefs.in &&
+ sed -i '/MAN.EXT/s:.gz::g' configure config-scripts/cups-manpages.m4 &&
+
+ aclocal -I config-scripts &&
+ autoconf -I config-scripts &&
+
+ CC=gcc ./configure --libdir=/usr/lib \
+ --with-rcdir=/tmp/cupsinit \
+ --with-system-groups=lpadmin \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-docdir=/usr/share/cups/doc-2.2.10 &&
+ make
+}
+
+package() {
+ cd "$pkgname"-"$pkgver"
+ make install BUILDROOT="${pkgdir}"
+ rm -rf /tmp/cupsinit
+ install -d $pkgdir/etc/cups
+ touch $pkgdir/etc/cups/client.conf
+ echo "ServerName /var/run/cups/cups.sock" > $pkgdir/etc/cups/client.conf
+install -d $pkgdir/etc/pam.d/
+cat >> /etc/pam.d/cups << EOF
+# Begin /etc/pam.d/cups
+
+auth include system-auth
+account include system-account
+session include system-session
+
+# End /etc/pam.d/cups
+EOF
+ install=cups.install
+ chmod 644 $pkgdir/etc/pam.d/cups
+ chmod 711 $pkgdir/var/run/cups/certs/
+ rm -rf $pkgdir/tmp
+ rm -rf $pkgdir/usr/share/man
+}
diff --git a/cups/cups.install.sh b/cups/cups.install.sh
new file mode 100644
index 0000000..7418c5c
--- /dev/null
+++ b/cups/cups.install.sh
@@ -0,0 +1,9 @@
+post_install() {
+ useradd -c "Print Service User" -d /var/spool/cups -g lp -s /bin/false -u 9 lp
+ groupadd -g 19 lpadmin
+}
+
+post_remove() {
+ userdel lp
+ groupdel lpadmin
+}
diff --git a/fakeroot/PKGBUILD-FAKEROOT b/fakeroot/PKGBUILD-FAKEROOT
new file mode 100644
index 0000000..373b721
--- /dev/null
+++ b/fakeroot/PKGBUILD-FAKEROOT
@@ -0,0 +1,30 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+pkgname=fakeroot
+pkgver=1.23
+pkgrel=1
+pkgdesc="fakeroot."
+arch=(x86_64)
+url="ftp.debian.org/debian/pool/main/f/fakeroot"
+license=('GPL')
+provides=("${pkgname}")
+conflicts=("${pkgname}")
+source=("http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.23.orig.tar.xz"
+ "fakeroot-fixes.patch")
+sha256sums=("009cd6696a931562cf1c212bb57ca441a4a2d45cd32c3190a35c7ae98506f4f6"
+ "SKIP")
+
+prepare() {
+ cd "$pkgname"-"$pkgver"
+ patch -Np1 -i "${srcdir}/fakeroot-fixes.patch"
+}
+
+build() {
+ cd "$pkgname"-"$pkgver"
+ ./configure --prefix=/usr --disable-static &&
+ make
+}
+
+package() {
+ cd "$pkgname"-"$pkgver"
+ make DESTDIR="$pkgdir/" install
+}
diff --git a/fakeroot/fakeroot-fixes.patch b/fakeroot/fakeroot-fixes.patch
new file mode 100644
index 0000000..8c694a3
--- /dev/null
+++ b/fakeroot/fakeroot-fixes.patch
@@ -0,0 +1,20 @@
+--- a/libfakeroot.c 2014-10-05 17:16:00.000000000 +0200
++++ b/libfakeroot.c 2017-02-19 17:08:08.269404922 +0100
+@@ -256,10 +256,16 @@
+ /* clear dlerror() just in case dlsym() legitimately returns NULL */
+ msg = dlerror();
+ *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
++
+ if ( (msg = dlerror()) != NULL){
+- fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
+-/* abort ();*/
++#ifdef LIBFAKEROOT_DEBUGGING
++ if (fakeroot_debug) {
++ fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
++/* abort ();*/
++ }
++#endif
+ }
++
+ }
+ }
diff --git a/make-ca/PKGBUILD-MAKECA b/make-ca/PKGBUILD-MAKECA
new file mode 100644
index 0000000..7754a34
--- /dev/null
+++ b/make-ca/PKGBUILD-MAKECA
@@ -0,0 +1,22 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+pkgname=make-ca
+pkgver=1.2
+pkgrel=1
+pkgdesc="Certificate tools"
+arch=(x86_64)
+license=('custom')
+provides=("${pkgname}")
+conflicts=("${pkgname}")
+source=("https://github.com/djlucas/${pkgname}/releases/download/v1.2/${pkgname}-1.2.tar.xz")
+sha256sums=('4d4d3572c77e49f84b0ca1f9bbabb3f597af9f6ade028ed78111369c2fd04445')
+depends=('p11-kit>=0.23.15' 'wget' 'openssl')
+optdepends=('java>=11.0.2'
+ 'openjdk>=11.0.2' #(to generate a java PKCS#12 store)
+ 'nss>=3.42.1' #(to generate a shared NSSDB)
+ )
+
+package() {
+ cd "$pkgname"-"$pkgver"
+ make DESTDIR="$pkgdir/" install
+ install=make-ca.install
+ }
diff --git a/make-ca/make-ca.install.sh b/make-ca/make-ca.install.sh
new file mode 100644
index 0000000..945c4c1
--- /dev/null
+++ b/make-ca/make-ca.install.sh
@@ -0,0 +1,17 @@
+post_install() {
+ systemctl enable update-pki.timer
+ /usr/sbin/make-ca -g
+ ln -sfv /etc/pki/tls/certs/ca-bundle.crt /etc/ssl/ca-bundle.crt
+
+ echo "install Additional CA Certificates"
+
+ install -vdm755 /etc/ssl/local &&
+ wget http://www.cacert.org/certs/root.crt -O /tmp/root.crt &&
+ wget http://www.cacert.org/certs/class3.crt -O /tmp/class3.crt &&
+ openssl x509 -in /tmp/root.crt -text -fingerprint -setalias "CAcert Class 1 root" -addtrust serverAuth -addtrust emailProtection -addtrust codeSigning > /etc/ssl/local/CAcert_Class_1_root.pem &&
+ openssl x509 -in /tmp/class3.crt -text -fingerprint -setalias "CAcert Class 3 root" -addtrust serverAuth -addtrust emailProtection -addtrust codeSigning > /etc/ssl/local/CAcert_Class_3_root.pem
+}
+
+post_remove () {
+ rm -rf /etc/ssl/ca-bundle.crt
+}
diff --git a/pacman/PKGBUILD-PACMAN b/pacman/PKGBUILD-PACMAN
new file mode 100644
index 0000000..a2340b4
--- /dev/null
+++ b/pacman/PKGBUILD-PACMAN
@@ -0,0 +1,76 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+
+pkgname=pacman
+pkgver=5.1.3
+pkgrel=1
+pkgdesc="A library-based package manager with dependency support"
+arch=('x86_64')
+url="http://www.archlinux.org/pacman/"
+license=('GPL')
+provides=("${pkgname}")
+conflicts=("${pkgname}")
+depends=('p11-kit' 'git' 'libxml2' 'curl' 'libarchive>=3.3.3' 'openssl' 'gpgme' 'dracOslinux-keyChain' 'bash-completion')
+optdepends=('coreutils' 'nettle')
+options=(emptydirs)
+source=("https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+ "pacman.sh"
+ "makepkg.sh.in.dr0-1.patch"
+)
+sha256sums=("10db61a0928d619871340c3f93a677d1541d6c52353c516aec4f8d96e830d4eb"
+ "fa33f8362b4751a3c6e183871f7d3a387d396241ebb6d705ab92def1f291d00d"
+ "9fbb6af50af531df3fc99b6f7292d6884921f1628766ddf36b603dc4dc435eab"
+)
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ sed -i "s#CPPFLAGS CFLAGS CXXFLAGS LDFLAGS#CC CXX &#" scripts/makepkg.sh.in
+ sed -i "/C*LAGS+=.*DEBUG/s#FLAGS+=#FLAGS=#g" scripts/makepkg.sh.in
+}
+
+build() {
+ export PACMAN_PREFIX="/opt/pacman"
+ cd "${pkgname}-${pkgver}"
+
+ ./configure --prefix=$PACMAN_PREFIX \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --sbindir=$PACMAN_PREFIX/bin \
+ --libdir=$PACMAN_PREFIX/lib \
+ --with-gpgme \
+ --with-nettle \
+ -with-pkg-ext=.pkg.dr0.tar.gz \
+ --with-src-ext=.src.dr0.tar.gz \
+ --disable-doc &&
+ make
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ patch -N scripts/makepkg.sh.in ../../makepkg.sh.in.dr0-1.patch
+ make install DESTDIR="${pkgdir}"
+ install -dm 755 ${pkgdir}/etc/profile.d
+ install -Dm 644 ${srcdir}/pacman.sh $pkgdir/etc/profile.d/pacman.sh
+
+cat >> $pkgdir/etc/pacman.conf << EOF
+[main-repo.dr0]
+SigLevel = Required
+Server = https://demit.dracos-linux.org/main
+
+[santet-repo.dr0]
+SigLevel = Required
+Server = https://santet.dracos-linux.org
+
+[lazy-gui-repo.dr0]
+SigLevel = Required
+Server = https://demit.dracos-linux.org/lazy
+
+[extra-repo.dr0]
+SigLevel = Required
+Server = https://demit.dracos-linux.org/extra
+
+#[community-repo.dr0]
+#SigLevel = Optional
+#Server = https://demit.dracos-linux.org/optional
+EOF
+ install=pacman.install
+}
diff --git a/pacman/makepkg.sh.in.dr0-1.patch b/pacman/makepkg.sh.in.dr0-1.patch
new file mode 100644
index 0000000..eb4e3e2
--- /dev/null
+++ b/pacman/makepkg.sh.in.dr0-1.patch
@@ -0,0 +1,30 @@
+--- makepkg.sh.in 2019-04-27 02:57:03.201503828 +0700
++++ makepkg.sh.in.new 2019-04-27 19:13:41.250579539 +0700
+@@ -1409,18 +1409,18 @@
+ exit $E_FS_PERMISSIONS
+ fi
+
+-if (( ! INFAKEROOT )); then
+- if (( EUID == 0 )); then
+- error "$(gettext "Running %s as root is not allowed as it can cause permanent,\n\
+-catastrophic damage to your system.")" "makepkg"
+- exit $E_ROOT
+- fi
+-else
+- if [[ -z $FAKEROOTKEY ]]; then
+- error "$(gettext "Do not use the %s option. This option is only for internal use by %s.")" "'-F'" "makepkg"
+- exit $E_INVALID_OPTION
+- fi
+-fi
++#if (( ! INFAKEROOT )); then
++# if (( EUID == 0 )); then
++# error "$(gettext "Running %s as root is not allowed as it can cause permanent,\n\
++#catastrophic damage to your system.")" "makepkg"
++# exit $E_ROOT
++# fi
++#else
++# if [[ -z $FAKEROOTKEY ]]; then
++# error "$(gettext "Do not use the %s option. This option is only for internal use by %s.")" "'-F'" "makepkg"
++# exit $E_INVALID_OPTION
++# fi
++#fi
diff --git a/pacman/pacman.install.sh b/pacman/pacman.install.sh
new file mode 100644
index 0000000..e1e698b
--- /dev/null
+++ b/pacman/pacman.install.sh
@@ -0,0 +1,3 @@
+post_install () {
+ pacman-key --populate dracOslinux
+}
diff --git a/pacman/pacman.sh b/pacman/pacman.sh
new file mode 100644
index 0000000..08db68d
--- /dev/null
+++ b/pacman/pacman.sh
@@ -0,0 +1,14 @@
+#begin /etc/profile.d/pacman.sh
+PACMAN_PREFIX="/opt/pacman"
+export PACMAN_PREFIX
+
+pathappend $PACMAN_PREFIX/bin PATH
+pathappend $PACMAN_PREFIX/lib/pkgconfig PKG_CONFIG_PATH
+pathappend $PACMAN_PREFIX/share/pkgconfig PKG_CONFIG_PATH
+
+pathappend $PACMAN_PREFIX/lib LIBRARY_PATH
+pathappend $PACMAN_PREFIX/include C_INCLUDE_PATH
+pathappend $PACMAN_PREFIX/include CPLUS_INCLUDE_PATH
+
+export PATH PKG_CONFIG_PATH LIBRARY_PATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH
+#end of /etc/profile.d/pacman.sh
diff --git a/pacman/pkgbuild-dracOslinux-keyChain.sh b/pacman/pkgbuild-dracOslinux-keyChain.sh
new file mode 100644
index 0000000..4d76dd3
--- /dev/null
+++ b/pacman/pkgbuild-dracOslinux-keyChain.sh
@@ -0,0 +1,18 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+pkgname=dracOslinux-keyChain
+pkgver=1.0
+pkgrel=1
+pkgdesc="dracOs linux keychain"
+arch=(x86_64)
+url="http://dracos-linux.org"
+license=('custom')
+provides=("${pkgname}")
+conflicts=("${pkgname}")
+source=("dracOslinux.gpg")
+sha256sums=("c86360b96658c28cd26e0d5d859fb1e0de33de0d39fe31dd32ba128201d27463")
+
+package() {
+ cd "$srcdir"
+ install -d -m 755 $pkgdir/opt/pacman/share/pacman/keyrings
+ install -Dm 644 dracOslinux.gpg $pkgdir/opt/pacman/share/pacman/keyrings/dracOslinux.gpg
+}