%define HOSTNAME acer20.stokkie.net # Prerequisite(s) for installation on Ubuntu # apt install apache2 apache2-bin apache2-data apache2-utils # apt install libapache2-mod-php # a2enmod cgi # a2ensite default-ssl.conf # a2enmod ssl # systemctl restart apache2 # # How To Enable HTTPS Protocol with Apache 2 on Ubuntu 20.04 # https://www.rosehosting.com/blog/how-to-enable-https-protocol-with-apache-2-on-ubuntu-20-04/ # Summary: Webster's Hypertext Gateway for dictd Name: dict-webinterface Version: 1.12.1+dfsg Release: 8 License: GPL Group: System/Servers Packager: Robert M. Stockmann Source: dict-webinterface.tar.gz Source1: penguin-s.gif Source2: dict-favicon.ico Patch0: dict-1.10-color-https-v2.patch Patch1: dict-1.10-br.patch Patch2: dict-1.10-host.patch BuildArch: amd64 Requires: dictd Requires: dictd-dicts-web1913 Requires: dictd-dicts-wn Requires: dictd-dicts-easton Requires: apache2 Requires: apache2-bin Requires: apache2-data Requires: apache2-utils Requires: libapache2-mod-php #Requires(post): dictd >= 1.12.1 #Requires(postun): dictd >= 1.12.1 %description The Webster Hypertext Gateway interface provides a point-and-click client interface (for non-linemode browsers) for accessing various dictionary services on the Internet. It uses apache2 mod_cgi and interfaces with dictd which is open at port 2628. To use type the word for which you want the definition in the search window, click to select either an exact match or an approximate match, and then click on the "Look up definition" button. Words in the resulting definition are hypertext linked back into the dictionary, allowing you to use your mouse to access the definition of those related (and unrelated) words. %prep %setup -c -q cd dict-webinterface tar xvpf dict.tar cd .. sync %patch0 -p0 %patch1 -p0 %patch2 -p0 perl -pi -e 's|dict.stokkie.net|%{HOSTNAME}|g' dict-webinterface/dict/dict.c %build cd dict-webinterface/dict make %install mkdir -p %{buildroot}/usr/lib/cgi-bin mkdir -p %{buildroot}/var/www/html/picts cp -p dict-webinterface/dict-webinterface-index.php %{buildroot}/var/www/html/index.php cp -p dict-webinterface/dict/dict %{buildroot}/usr/lib/cgi-bin/dict cp -p dict-webinterface/dict/dict %{buildroot}/usr/lib/cgi-bin/http_webster cp %{SOURCE1} %{buildroot}/var/www/html/picts/penguin-s.gif cp %{SOURCE2} %{buildroot}/var/www/html/favicon.ico %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644, root, root) /usr/lib/cgi-bin/dict /usr/lib/cgi-bin/http_webster /var/www/html/favicon.ico /var/www/html/index.php /var/www/html/picts /var/www/html/picts/penguin-s.gif %changelog * Mon Mar 14 2022 Robert M. Stockmann 1.12.1+dfsg-8-1ubu + Revision: 101191 - New release of dict-webinterface on ubuntu - uses apache2 and dictd 1.12.1+dfsg-8