parent
90c36902db
commit
d64e20a836
|
@ -1,4 +1,6 @@
|
|||
*.deb
|
||||
*tar.gz
|
||||
md5sums
|
||||
/*.deb
|
||||
/*.tgz
|
||||
/*.tar.gz
|
||||
/*.tar.xz
|
||||
/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
|
||||
|
||||
VERSION=0.6.2
|
||||
VERSION=221118-e58fee0fb
|
||||
BASENAME=photoprism
|
||||
|
||||
help:
|
||||
|
@ -31,11 +31,15 @@ download:
|
|||
@echo
|
||||
@echo This uses the binary /usr/local/bin/photoprism
|
||||
@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:
|
||||
cp -a files ../
|
||||
mkdir -p ../files/usr/bin
|
||||
cp /usr/local/bin/photoprism ../files/usr/bin
|
||||
mkdir -p ../files/opt/
|
||||
cd ../files/opt/ && tar xfz ../../221118-e58fee0fb.tar.gz
|
||||
|
||||
# makes the DEBIAN/ directory
|
||||
DEBIAN:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Source: photoprism
|
||||
Build-Depends: golang
|
||||
Package: photoprism
|
||||
Version: 0.6.2
|
||||
Version: 221118-e58fee0fb
|
||||
Maintainer: Jeff Carr <jcarr@wit.com>
|
||||
Architecture: any
|
||||
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