summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO29
-rw-r--r--.gitignore3
-rw-r--r--10-master.conf121
-rw-r--r--PKGBUILD45
-rw-r--r--avahi.service7
-rw-r--r--master.cf138
-rw-r--r--portal.install16
-rw-r--r--portal.sudo1
8 files changed, 32 insertions, 328 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 80a1a31f64b9..d84589f81506 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,15 @@
-# Generated by mksrcinfo v8
-# Wed Jul 27 22:15:24 UTC 2016
pkgbase = portal
- pkgdesc = A personal portal system. Alpha version, do not install unless you know what you are doing
- pkgver = 0.2
- pkgrel = 9
- url = https://github.com/orbifx/portal
- install = portal.install
- arch = any
- license = LGPL3
- depends = sudo
- depends = postfix
- depends = dovecot
- depends = nginx
- depends = avahi
- optdepends = yamado-git
+ pkgdesc = Quick and easy command-line file transfer utility from any computer to another
+ pkgver = 1.0.3
+ pkgrel = 1
+ url = https://github.com/ZinoKader/portal
+ arch = x86_64
+ arch = aarch64
+ license = MIT
provides = portal
- source = https://github.com/orbifx/portal/releases/download/v0.3-alpha/portal.tar.gz
- md5sums = ff3343d24e2ec014d0e62d3cbb37cef6
+ source_x86_64 = https://github.com/ZinoKader/portal/releases/download/v1.0.3/portal_1.0.3_Linux_x86_64.tar.gz
+ sha256sums_x86_64 = 20a22b220efa9d9f26321ba3276856bbe82eb54c91939e7989036da5c6e694df
+ source_aarch64 = https://github.com/ZinoKader/portal/releases/download/v1.0.3/portal_1.0.3_Linux_arm64.tar.gz
+ sha256sums_aarch64 = 40a0c0b9daf18f6e7c0fe794dfda2aef4b41cf52fa1843254cc1d34efddfc40f
pkgname = portal
-
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..a7ea2e0a6040
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+*.tar.*
+pkg
+src
diff --git a/10-master.conf b/10-master.conf
deleted file mode 100644
index 0349e870a755..000000000000
--- a/10-master.conf
+++ /dev/null
@@ -1,121 +0,0 @@
-#default_process_limit = 100
-#default_client_limit = 1000
-
-# Default VSZ (virtual memory size) limit for service processes. This is mainly
-# intended to catch and kill processes that leak memory before they eat up
-# everything.
-#default_vsz_limit = 256M
-
-# Login user is internally used by login processes. This is the most untrusted
-# user in Dovecot system. It shouldn't have access to anything at all.
-#default_login_user = dovenull
-
-# Internal user is used by unprivileged processes. It should be separate from
-# login user, so that login processes can't disturb other processes.
-#default_internal_user = dovecot
-
-service imap-login {
- inet_listener imap {
- #port = 143
- }
- inet_listener imaps {
- #port = 993
- #ssl = yes
- }
-
- # Number of connections to handle before starting a new process. Typically
- # the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0
- # is faster. <doc/wiki/LoginProcess.txt>
- #service_count = 1
-
- # Number of processes to always keep waiting for more connections.
- #process_min_avail = 0
-
- # If you set service_count=0, you probably need to grow this.
- #vsz_limit = $default_vsz_limit
-}
-
-service pop3-login {
- inet_listener pop3 {
- #port = 110
- }
- inet_listener pop3s {
- #port = 995
- #ssl = yes
- }
-}
-
-service lmtp {
- unix_listener lmtp {
- #mode = 0666
- }
-
- # Create inet listener only if you can't use the above UNIX socket
- #inet_listener lmtp {
- # Avoid making LMTP visible for the entire internet
- #address =
- #port =
- #}
-}
-
-service imap {
- # Most of the memory goes to mmap()ing files. You may need to increase this
- # limit if you have huge mailboxes.
- #vsz_limit = $default_vsz_limit
-
- # Max. number of IMAP processes (connections)
- #process_limit = 1024
-}
-
-service pop3 {
- # Max. number of POP3 processes (connections)
- #process_limit = 1024
-}
-
-service auth {
- # auth_socket_path points to this userdb socket by default. It's typically
- # used by dovecot-lda, doveadm, possibly imap process, etc. Users that have
- # full permissions to this socket are able to get a list of all usernames and
- # get the results of everyone's userdb lookups.
- #
- # The default 0666 mode allows anyone to connect to the socket, but the
- # userdb lookups will succeed only if the userdb returns an "uid" field that
- # matches the caller process's UID. Also if caller's uid or gid matches the
- # socket's uid or gid the lookup succeeds. Anything else causes a failure.
- #
- # To give the caller full permissions to lookup all users, set the mode to
- # something else than 0666 and Dovecot lets the kernel enforce the
- # permissions (e.g. 0777 allows everyone full permissions).
- unix_listener auth-userdb {
- #mode = 0666
- #user =
- #group =
- }
-
- # Postfix smtp-auth
- unix_listener /var/spool/postfix/private/auth {
- group = postfix
- user = postfix
- mode = 0666
- }
-
- # Auth process is run as this user.
- user = root
-}
-
-service auth-worker {
- # Auth worker process is run as root by default, so that it can access
- # /etc/shadow. If this isn't necessary, the user should be changed to
- # $default_internal_user.
- #user = root
-}
-
-service dict {
- # If dict proxy is used, mail processes should have access to its socket.
- # For example: mode=0660, group=vmail and global mail_access_groups=vmail
- unix_listener dict {
- #mode = 0600
- #user =
- #group =
- }
-}
diff --git a/PKGBUILD b/PKGBUILD
index 0b5a5370f875..cf348a413a15 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,23 @@
-# Maintainer: Stavros Polymenis <sp@orbitalfox.com>
+# Maintainer: Jonathan Neidel <aur at jneidel dot com>
+
pkgname=portal
-pkgver=0.2
-pkgrel=9
-pkgdesc="A personal portal system. Alpha version, do not install unless you know what you are doing"
-arch=(any)
-url="https://github.com/orbifx/portal"
-license=('LGPL3')
-groups=()
-depends=(sudo postfix dovecot nginx avahi)
+pkgver=1.0.3
+pkgrel=1
+pkgdesc="Quick and easy command-line file transfer utility from any computer to another"
+arch=(x86_64 aarch64)
+url="https://github.com/ZinoKader/portal"
+license=(MIT)
+depends=()
makedepends=()
-optdepends=(yamado-git)
-provides=("portal")
-conflicts=()
-replaces=()
-options=()
-install="portal.install"
-changelog=
-source=(#"git+https://github.com/orbifx/portal.git"
- https://github.com/orbifx/portal/releases/download/v0.3-alpha/portal.tar.gz)
-noextract=()
-md5sums=('ff3343d24e2ec014d0e62d3cbb37cef6')
+optdepends=()
+provides=(portal)
+source_x86_64=("https://github.com/ZinoKader/portal/releases/download/v${pkgver}/portal_${pkgver}_Linux_x86_64.tar.gz")
+source_aarch64=("https://github.com/ZinoKader/portal/releases/download/v${pkgver}/portal_${pkgver}_Linux_arm64.tar.gz")
+sha256sums_x86_64=("20a22b220efa9d9f26321ba3276856bbe82eb54c91939e7989036da5c6e694df")
+sha256sums_aarch64=("40a0c0b9daf18f6e7c0fe794dfda2aef4b41cf52fa1843254cc1d34efddfc40f")
package() {
- install -Dm544 portal "$pkgdir/usr/bin/portal"
- install -Dm544 portal-postconf "$pkgdir/usr/bin/portal-postconf"
- install -Dm544 portal-doveconf "$pkgdir/usr/bin/portal-doveconf"
- install -Dm440 ../portal.sudo "${pkgdir}/etc/sudoers.d/${pkgname}"
- install -Dm544 ../master.cf "$pkgdir/usr/share/portal/master.cf"
- install -Dm544 ../10-master.conf "$pkgdir/usr/share/portal/10-master.conf"
- install -Dm544 ../avahi.service "$pkgdir/etc/avahi/services/portal.service"
+ cd "$srcdir"
+ mkdir -p "$pkgdir/usr/bin"
+ cp portal "$pkgdir/usr/bin/"
}
diff --git a/avahi.service b/avahi.service
deleted file mode 100644
index 6fe82d34e512..000000000000
--- a/avahi.service
+++ /dev/null
@@ -1,7 +0,0 @@
-<service-group>
- <name replace-wildcards="yes">Portal@%h</name>
- <service>
- <type>_ssh._tcp</type>
- <port>22</port>
- </service>
-</service-group>
diff --git a/master.cf b/master.cf
deleted file mode 100644
index f536111fffa2..000000000000
--- a/master.cf
+++ /dev/null
@@ -1,138 +0,0 @@
-#
-# Postfix master process configuration file. For details on the format
-# of the file, see the master(5) manual page (command: "man 5 master" or
-# on-line: http://www.postfix.org/master.5.html).
-#
-# Do not forget to execute "postfix reload" after editing this file.
-#
-# ==========================================================================
-# service type private unpriv chroot wakeup maxproc command + args
-# (yes) (yes) (no) (never) (100)
-# ==========================================================================
-smtp inet n - n - - smtpd
-#smtp inet n - n - 1 postscreen
-#smtpd pass - - n - - smtpd
-#dnsblog unix - - n - 0 dnsblog
-#tlsproxy unix - - n - 0 tlsproxy
-submission inet n - n - - smtpd
-# -o syslog_name=postfix/submission
- -o smtpd_tls_security_level=encrypt
- -o smtpd_sasl_auth_enable=yes
-# SASL authentication with dovecot
- -o smtpd_sasl_auth_enable=yes
- -o smtpd_sasl_type=dovecot
- -o smtpd_sasl_path=private/auth
- -o smtpd_sasl_security_options=noanonymous
- -o smtpd_sasl_local_domain=$myhostname
- -o smtpd_client_restrictions=permit_sasl_authenticated,reject
- -o smtpd_recipient_restrictions=reject_unknown_recipient_domain,permit_sasl_authenticated,reject
-# -o smtpd_reject_unlisted_recipient=no
-# -o smtpd_client_restrictions=$mua_client_restrictions
-# -o smtpd_helo_restrictions=$mua_helo_restrictions
-# -o smtpd_sender_restrictions=$mua_sender_restrictions
-# -o smtpd_recipient_restrictions=
-# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
-# -o milter_macro_daemon_name=ORIGINATING
-#smtps inet n - n - - smtpd
-# -o syslog_name=postfix/smtps
-# -o smtpd_tls_wrappermode=yes
-# -o smtpd_sasl_auth_enable=yes
-# -o smtpd_reject_unlisted_recipient=no
-# -o smtpd_client_restrictions=$mua_client_restrictions
-# -o smtpd_helo_restrictions=$mua_helo_restrictions
-# -o smtpd_sender_restrictions=$mua_sender_restrictions
-# -o smtpd_recipient_restrictions=
-# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
-# -o milter_macro_daemon_name=ORIGINATING
-#628 inet n - n - - qmqpd
-pickup unix n - n 60 1 pickup
-cleanup unix n - n - 0 cleanup
-qmgr unix n - n 300 1 qmgr
-#qmgr unix n - n 300 1 oqmgr
-tlsmgr unix - - n 1000? 1 tlsmgr
-rewrite unix - - n - - trivial-rewrite
-bounce unix - - n - 0 bounce
-defer unix - - n - 0 bounce
-trace unix - - n - 0 bounce
-verify unix - - n - 1 verify
-flush unix n - n 1000? 0 flush
-proxymap unix - - n - - proxymap
-proxywrite unix - - n - 1 proxymap
-smtp unix - - n - - smtp
-relay unix - - n - - smtp
-# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
-showq unix n - n - - showq
-error unix - - n - - error
-retry unix - - n - - error
-discard unix - - n - - discard
-local unix - n n - - local
-virtual unix - n n - - virtual
-lmtp unix - - n - - lmtp
-anvil unix - - n - 1 anvil
-scache unix - - n - 1 scache
-#
-# ====================================================================
-# Interfaces to non-Postfix software. Be sure to examine the manual
-# pages of the non-Postfix software to find out what options it wants.
-#
-# Many of the following services use the Postfix pipe(8) delivery
-# agent. See the pipe(8) man page for information about ${recipient}
-# and other message envelope options.
-# ====================================================================
-#
-# maildrop. See the Postfix MAILDROP_README file for details.
-# Also specify in main.cf: maildrop_destination_recipient_limit=1
-#
-#maildrop unix - n n - - pipe
-# flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
-#
-# ====================================================================
-#
-# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
-#
-# Specify in cyrus.conf:
-# lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
-#
-# Specify in main.cf one or more of the following:
-# mailbox_transport = lmtp:inet:localhost
-# virtual_transport = lmtp:inet:localhost
-#
-# ====================================================================
-#
-# Cyrus 2.1.5 (Amos Gouaux)
-# Also specify in main.cf: cyrus_destination_recipient_limit=1
-#
-#cyrus unix - n n - - pipe
-# user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
-#
-# ====================================================================
-#
-# Old example of delivery via Cyrus.
-#
-#old-cyrus unix - n n - - pipe
-# flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
-#
-# ====================================================================
-#
-# See the Postfix UUCP_README file for configuration details.
-#
-#uucp unix - n n - - pipe
-# flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
-#
-# ====================================================================
-#
-# Other external delivery methods.
-#
-#ifmail unix - n n - - pipe
-# flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
-#
-#bsmtp unix - n n - - pipe
-# flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
-#
-#scalemail-backend unix - n n - 2 pipe
-# flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
-# ${nexthop} ${user} ${extension}
-#
-#mailman unix - n n - - pipe
-# flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
-# ${nexthop} ${user}
diff --git a/portal.install b/portal.install
deleted file mode 100644
index a945e69b1fed..000000000000
--- a/portal.install
+++ /dev/null
@@ -1,16 +0,0 @@
-post_install() {
- getent passwd portal &>/dev/null || useradd -r portal -d / -s /bin/false >/dev/null
- portal-postconf -d $(hostname)
- portal-doveconf
- true
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- getent passwd portal &>/dev/null && userdel portal >/dev/null
- getent group portal &>/dev/null && groupdel portal >/dev/null
- post_install
-}
diff --git a/portal.sudo b/portal.sudo
deleted file mode 100644
index 2dfe6c236f89..000000000000
--- a/portal.sudo
+++ /dev/null
@@ -1 +0,0 @@
-%wheel ALL=(root) NOPASSWD: /usr/bin/portal