parent
90c36902db
commit
d64e20a836
|
@ -1,4 +1,6 @@
|
||||||
*.deb
|
|
||||||
*tar.gz
|
|
||||||
md5sums
|
md5sums
|
||||||
|
/*.deb
|
||||||
|
/*.tgz
|
||||||
|
/*.tar.gz
|
||||||
|
/*.tar.xz
|
||||||
/files
|
/files
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
help:
|
||||||
|
@echo
|
||||||
|
@echo "# this are just simple shortcuts to package up files on a system once you have it compiled and installed"
|
||||||
|
@echo "cd <projectName>; make all"
|
||||||
|
@echo
|
||||||
|
|
||||||
|
#
|
||||||
|
# Just for reference, you can make a debian package using 'ar' from the command line
|
||||||
|
#
|
||||||
|
# A .deb file is just output from 'ar rcs'
|
||||||
|
#
|
||||||
|
tar-ar:
|
||||||
|
cd DEBIAN && tar --ignore-failed-read -cvJf ../control.tar.xz .
|
||||||
|
cd files && tar -cvJf ../data.tar.xz .
|
||||||
|
ar rcs ${BASENAME}_${VERSION}_amd64.deb debian-binary control.tar.xz data.tar.xz
|
||||||
|
dpkg-deb --info ${BASENAME}_${VERSION}_amd64.deb
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf files/
|
||||||
|
rm -f *.deb
|
||||||
|
rm -f *.tar.xz data.tar.xz
|
||||||
|
rm -rf */DEBIAN/
|
|
@ -1,6 +1,6 @@
|
||||||
.PHONY: control
|
.PHONY: control
|
||||||
|
|
||||||
VERSION=0.6.2
|
VERSION=221118-e58fee0fb
|
||||||
BASENAME=photoprism
|
BASENAME=photoprism
|
||||||
|
|
||||||
help:
|
help:
|
||||||
|
@ -31,11 +31,15 @@ download:
|
||||||
@echo
|
@echo
|
||||||
@echo This uses the binary /usr/local/bin/photoprism
|
@echo This uses the binary /usr/local/bin/photoprism
|
||||||
@echo
|
@echo
|
||||||
|
@echo https://github.com/photoprism/photoprism/releases
|
||||||
|
@echo mkdir ~/go/src/github.com/photoprism; cd ~/go/src/github.com/photoprism/
|
||||||
|
@echo git clone http://github.com/photoprism/photoprism
|
||||||
|
@echo cd photoprims/; go get -v -u ...
|
||||||
|
|
||||||
extract:
|
extract:
|
||||||
cp -a files ../
|
cp -a files ../
|
||||||
mkdir -p ../files/usr/bin
|
mkdir -p ../files/opt/
|
||||||
cp /usr/local/bin/photoprism ../files/usr/bin
|
cd ../files/opt/ && tar xfz ../../221118-e58fee0fb.tar.gz
|
||||||
|
|
||||||
# makes the DEBIAN/ directory
|
# makes the DEBIAN/ directory
|
||||||
DEBIAN:
|
DEBIAN:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Source: photoprism
|
Source: photoprism
|
||||||
Build-Depends: golang
|
Build-Depends: golang
|
||||||
Package: photoprism
|
Package: photoprism
|
||||||
Version: 0.6.2
|
Version: 221118-e58fee0fb
|
||||||
Maintainer: Jeff Carr <jcarr@wit.com>
|
Maintainer: Jeff Carr <jcarr@wit.com>
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends:
|
Depends:
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
[Unit]
|
||||||
|
Description=PhotoPrism service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
User=photoprism
|
||||||
|
Group=photoprism
|
||||||
|
WorkingDirectory=/opt/photoprism
|
||||||
|
EnvironmentFile=/var/lib/photoprism/.env
|
||||||
|
ExecStart=/opt/photoprism/bin/photoprism up -d
|
||||||
|
ExecStop=/opt/photoprism/bin/photoprism down
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue