aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/vpn.scm
diff options
context:
space:
mode:
authorAlexandru-Sergiu Marton <brown121407@posteo.ro>2020-10-25 02:19:39 +0300
committerLudovic Courtès <ludo@gnu.org>2020-10-27 18:00:28 +0100
commit2ade5bdeb8978d252f298df7150b8d1a359e618d (patch)
tree8ea7e0794202e04f3bf710960acaa91067139719 /gnu/services/vpn.scm
parent1a7bfbb67da5c871816ba33fdcac900751dac3d4 (diff)
downloadguix-2ade5bdeb8978d252f298df7150b8d1a359e618d.tar.gz
guix-2ade5bdeb8978d252f298df7150b8d1a359e618d.zip
services: Add gmnisrv web service.
* gnu/services/web.scm (<gmnisrv-configuration>): New record type. (%default-gmnisrv-config-file): New variable. (%gmnisrv-accounts, %gmnisrv-activation): New variables. (gmnisrv-shepherd-service): New procedure. (gmnisrv-service-type): New variable. * doc/guix.texi (Web Services): Document it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/services/vpn.scm')
0 files changed, 0 insertions, 0 deletions
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 GNU Guix. If not, see <http://www.gnu.org/licenses/>. (define-module (gnu packages wordnet) #:use-module (guix packages) #:use-module (guix build-system gnu) #:use-module (guix licenses) #:use-module (guix download) #:use-module (gnu packages) #:use-module (gnu packages gcc) #:use-module (gnu packages tcl)) (define-public wordnet (package (name "wordnet") (version "3.0") (source (origin (method url-fetch) (uri (string-append "http://wordnetcode.princeton.edu/" version "/WordNet-" version ".tar.bz2")) (sha256 (base32 "08pgjvd2vvmqk3h641x63nxp7wqimb9r30889mkyfh2agc62sjbc")) (patches (search-patches "wordnet-CVE-2008-2149.patch" "wordnet-CVE-2008-3908-pt1.patch" "wordnet-CVE-2008-3908-pt2.patch")))) (build-system gnu-build-system) (arguments `(#:configure-flags (list (string-append "--with-tcl=" (assoc-ref %build-inputs "tcl") "/lib") (string-append "--with-tk=" (assoc-ref %build-inputs "tk") "/lib") ;; Provide the `result' field in `Tcl_Interp'. ;; See <https://bugs.gentoo.org/show_bug.cgi?id=452034>. "CFLAGS=-DUSE_INTERP_RESULT -O2") #:phases (modify-phases %standard-phases (add-before 'build 'build-libwn-PIC (lambda _ ;; GNU Dico links libWN.a in its wordnet.so plugin, so it needs ;; PIC. (invoke "make" "-C" "lib" "CFLAGS=-O2 -g -fPIC" "LDFLAGS=-fPIC"))) (add-after 'install 'post-install (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (bin (assoc-ref outputs "tk")) (tk (assoc-ref inputs "tk")) (tkv ,(let ((v (package-version tk))) (string-take v (string-index-right v #\.))))) ;; Move `wishwn' and `wnb' to BIN. (for-each (lambda (prog) (let ((orig (string-append out "/bin/" prog)) (dst (string-append bin "/bin/" prog)) (dir (string-append tk "/lib/tk" tkv))) (mkdir-p (dirname dst)) (copy-file orig dst) (delete-file orig) (wrap-program dst `("TK_LIBRARY" "" = (,dir)) `("PATH" ":" prefix (,(string-append out "/bin")))))) '("wishwn" "wnb")) #t)))))) (outputs '("out" "tk")) ; for the Tcl/Tk GUI (inputs (list tk tcl)) (home-page "https://wordnet.princeton.edu/") (synopsis "Lexical database for the English language") (description "WordNet is a large lexical database of English. Nouns, verbs, adjectives and adverbs are grouped into sets of cognitive synonyms (synsets), each expressing a distinct concept. Synsets are interlinked by means of conceptual-semantic and lexical relations. The resulting network of meaningfully related words and concepts can be navigated with the browser. WordNet is also freely and publicly available for download. WordNet's structure makes it a useful tool for computational linguistics and natural language processing.") (license x11)))