{"id":19338435,"url":"https://github.com/gbv/libsites","last_synced_at":"2025-02-24T08:16:57.044Z","repository":{"id":5981754,"uuid":"7203929","full_name":"gbv/libsites","owner":"gbv","description":"Standortinformationen für GBV-Bibliotheken","archived":false,"fork":false,"pushed_at":"2024-04-02T05:52:49.000Z","size":498,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-06T10:30:48.964Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://uri.gbv.de/organization/ ","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gbv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-17T11:42:02.000Z","updated_at":"2022-08-04T11:26:42.000Z","dependencies_parsed_at":"2022-08-27T22:53:10.052Z","dependency_job_id":null,"html_url":"https://github.com/gbv/libsites","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbv%2Flibsites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbv%2Flibsites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbv%2Flibsites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbv%2Flibsites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbv","download_url":"https://codeload.github.com/gbv/libsites/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240441952,"owners_count":19801793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T03:17:27.159Z","updated_at":"2025-02-24T08:16:57.005Z","avatar_url":"https://github.com/gbv.png","language":"Perl","readme":"# NAME\n\nlibsites - GBV-Standortverzeichnis\n\n# SYNOPSIS\n\nThe application is automatically started as service, listening on port 6013\n\n    sudo service libsites {status|start|stop|restart}\n\n# DESCRIPTION\n\nlibsites implements an RDF-based web registry of library locations.\n\n# INSTALLATION\n\nCreate user `libsites` and directories:\n\n    sudo adduser --home /srv/libsites --disabled-password libsites\n    sudo mkdir /etc/libsites /var/log/libsites\n    sudo chown libsites:libsites /etc/libsites /var/log/libsites\n\nInstall dependencies:\n\n    sudo apt-get install git libcatmandu-perl librdf-trine-perl libgit-repository-perl liblog-contextual-perl starman \n\nClone this repository as user `libsites` in `/srv/libsites`\n\n    sudo -iu libsites\n\n    git clone --bare https://github.com/gbv/libsites.git .git\n    git config --unset core.bare\n    git checkout .\n\n    git clone https://github.com/gbv/libsites-config.git /etc/libsites\n    ln -s /etc/libsites libsites-config\n\nLocally install Perl libraries\n\n    make -B local\n\nThe actual content is retrieved from the German ISIL directory (hosted by ZDB)\nand the git repository \u003chttps://github.com/gbv/libsites-config\u003e among other sources.\n\nInitally update data of libraries (will take a while):\n\n    perl -Ilib -Ilocal/lib/perl5 bin/update all\n\nAdd a cronjob (`crontab -e`) to daily update the data, e.g.\n\n    10 03 * * * perl -Ilib -Ilocal/lib/perl5 bin/update all\n\nSwitch back to root and enable the service by copying `libsites.init` to `/etc/init.d/libsites` and update runlevel directories with `update-rc.d libsites defaults`. then start the service\n\n    sudo cp /srv/libsites/libsites.init /etc/init.d/libsites\n    sudo update-rc.d libsites defaults\n    sudo service libsites start\n\nAfter installation the service is available at localhost on port 6013. Better\nput the service behind a reverse proxy to enable SSL and nice URLs!\n\n# ADMINISTRATION\n\n## Updates of content\n\nA full update is run daily and logged to `/var/log/libsites/update.log`. At URL\npath `/update` there is also a GitHub Webhook to trigger update from configuration\nrepository `libsites-config`. The update script can be run manually as following:\n\n    cd /srv/libsites \u0026\u0026 sudo -u libsites perl -Ilib -Ilocal/lib/perl5 bin/update all\n\nRemove the parameter `all` for usage help.\n\n## Logging\n\nLog files are written in `/var/log/libsites/` and kept for 30 day by default:\n\n* `access.log` - HTTP request and responses in Apache Log Format\n* `server.log` - Web server messages (when server was started and stopped)\n* `update.log` - Update script output\n\n# SEE ALSO\n\nThe source code of libsites is managed in a public git repository at\n\u003chttps://github.com/gbv/libsites\u003e. Please report bugs and feature request at\n\u003chttps://github.com/gbv/libsites/issues\u003e!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbv%2Flibsites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbv%2Flibsites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbv%2Flibsites/lists"}