Install systemd .service files (Closes: #679450)
This commit is contained in:
		
							parent
							
								
									8141cb7297
								
							
						
					
					
						commit
						0d1e4a2dcc
					
				
					 2 changed files with 15 additions and 2 deletions
				
			
		
							
								
								
									
										14
									
								
								debian/rules
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								debian/rules
									
										
									
									
										vendored
									
									
								
							|  | @ -30,7 +30,7 @@ DEB_CONFIGURE_EXTRA_FLAGS := --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \ | |||
| 	                     --with-user=nut --with-group=nut | ||||
| 
 | ||||
| ifeq (linux,$(DEB_HOST_ARCH_OS)) | ||||
|   DEB_CONFIGURE_EXTRA_FLAGS+=--with-udev-dir=/lib/udev | ||||
|   DEB_CONFIGURE_EXTRA_FLAGS+=--with-udev-dir=/lib/udev --with-systemdsystemunitdir=/lib/systemd/system | ||||
| endif | ||||
| 
 | ||||
| # only build documentation if asciidoc is installed | ||||
|  | @ -66,6 +66,18 @@ common-install-arch:: | |||
| 	ln -s /lib/$(DEB_HOST_MULTIARCH)/libupsclient.so.1.1.0 \ | ||||
| 		$(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libupsclient.so | ||||
| 
 | ||||
| 	# Install systemd files only on systems where it's supported | ||||
| ifeq (linux,$(DEB_HOST_ARCH_OS)) | ||||
| 	install -m 644 -D $(CURDIR)/debian/tmp/lib/systemd/system/nut-monitor.service \ | ||||
| 		$(CURDIR)/debian/nut-client/lib/systemd/system/nut-monitor.service | ||||
| 	install -D $(CURDIR)/debian/tmp/lib/systemd/system-shutdown/nutshutdown \ | ||||
| 		$(CURDIR)/debian/nut-server/lib/systemd/system-shutdown/nutshutdown | ||||
| 	install -m 644 -D $(CURDIR)/debian/tmp/lib/systemd/system/nut-driver.service \ | ||||
| 		$(CURDIR)/debian/nut-server/lib/systemd/system/nut-driver.service | ||||
| 	install -m 644 -D $(CURDIR)/debian/tmp/lib/systemd/system/nut-server.service \ | ||||
| 		$(CURDIR)/debian/nut-server/lib/systemd/system/nut-server.service | ||||
| endif | ||||
| 
 | ||||
| common-install-indep:: | ||||
| 	#install documentation | ||||
| 	mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/nut-doc/pdf | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue