2004-02-03 08:51:51 -05:00
|
|
|
(define-package "sunet" (2 1)
|
2004-03-29 06:05:18 -05:00
|
|
|
((install-lib-version (1 0))
|
|
|
|
(options (with-surflets "Install with SUrflets (requires SSAX)" "<yes/no>" #t #t #t
|
2004-02-03 08:51:51 -05:00
|
|
|
,parse-boolean ,show-boolean)))
|
|
|
|
(let ((surflets? (get-option-value 'with-surflets)))
|
|
|
|
(install-directory-contents "scheme" 'scheme)
|
|
|
|
(install-directory "web-server" 'misc-shared)
|
2004-05-24 11:54:58 -04:00
|
|
|
(install-file "start-web-server" 'misc-shared "web-server")
|
|
|
|
(install-file "start-extended-web-server" 'misc-shared "web-server")
|
|
|
|
(if surflets?
|
|
|
|
(install-file "start-surflet-server" 'misc-shared "web-server"))
|
2004-02-03 08:51:51 -05:00
|
|
|
(install-directory-contents "doc" 'doc)
|
2004-02-02 05:49:10 -05:00
|
|
|
|
2004-02-03 08:51:51 -05:00
|
|
|
(let ((doc-dir (get-directory 'doc #t))
|
|
|
|
(misc-shared-dir (get-directory 'misc-shared #t)))
|
|
|
|
(create-symlink (string-append doc-dir "/html")
|
|
|
|
(string-append misc-shared-dir
|
|
|
|
"/web-server/root/htdocs/sunet-manual")))
|
|
|
|
|
2004-02-02 05:49:10 -05:00
|
|
|
|
2004-02-03 08:51:51 -05:00
|
|
|
(let ((scheme-dir (get-directory 'scheme #t)))
|
|
|
|
(write-to-load-script
|
|
|
|
`((user)
|
|
|
|
(config)
|
|
|
|
(load ,(string-append scheme-dir "/packages.scm"))
|
|
|
|
,@(if surflets?
|
|
|
|
`((load ,(string-append scheme-dir "/httpd/surflets/packages.scm")))
|
|
|
|
'())
|
|
|
|
(user)))))
|
2004-02-02 05:26:26 -05:00
|
|
|
)
|